Which of these variable names are valid in php8.1: `$012mobile` or `$привет`?
Anonymous Quiz
8%
Both are valid
22%
Only `$012mobile` is valid
51%
Only `$привет` is valid
19%
Both invalid
Which of these function calls will significantly increase the used memory (imagine we measure the memory peak usage before and after function call)?
Anonymous Quiz
22%
`unset_first` and `add_new`
17%
`add_new`
22%
`get_count` and `unset_first`
30%
`unset_first`
4%
All of them
4%
None of them
What will be in the resulting array?
Anonymous Quiz
16%
[1] => 3, [1.5] => 4
35%
[1] => 2, [1.5] => 4
3%
[1] => 1, [1.5] => 3
23%
[1] => 1, [1.5] => 4
6%
[1] => 2, [2] => 3, [1.5] => 4
16%
[1] => 2, [2] => 2, [3] => 3, [1.5] => 4
Repating binary operations today. What will be the result?
Anonymous Quiz
12%
nothing
6%
Hard
12%
Medium
24%
Hard Medium
6%
Easy
6%
Hard Easy
12%
Medium Easy
24%
Hard Medium Easy
0%
error
What will be in `$result` after all?
Anonymous Quiz
4%
2 4 6
16%
12 12 12
24%
3 5 7
4%
2 3 4
28%
3 4 5
8%
12 13 14
16%
11 12 13
0%
Error
What will be in $array? PHP 8.1+
Anonymous Quiz
17%
[0, 1, 2]
55%
[a => 1, b => 2]
7%
[a => 0, 1, 2]
7%
[a => 0, b => 2]
14%
Uncaught Error: Cannot unpack array with string keys
How to fix this function to make it work properly?
Anonymous Quiz
8%
Change "fopen($path, 'rb')" to "fopen($path, 'r')"
17%
Remove "fclose($f)"
0%
Change "fread($f, 8)" to "fread($f, 4)"
33%
Change "fread($f, 8)" to "fread($f, 2)"
17%
Use special functions to compare binary data instead of "==="
17%
Change "\xFF\xD8" to "\xff\xd8"
8%
Change "\xFF\xD8" to "FFD8"
Which of these 2 classes are properly defined (won't cause PHP to throw an error)?
Anonymous Quiz
13%
Both A and B are eligible
22%
Only A is eligible
39%
Only B is eligible
26%
Both will cause an error