Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\integer" to suppress this warning in /in/fa0VD on line 3
Searching for 6 in 1,2,3,4,5,6
Fatal error: Uncaught TypeError: binary_search(): Argument #2 ($target) must be of type integer, int given, called in /in/fa0VD on line 20 and defined in /in/fa0VD:3
Stack trace:
#0 /in/fa0VD(20): binary_search(Array, 6)
#1 {main}
thrown in /in/fa0VD on line 3
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Warning: "integer" will be interpreted as a class name. Did you mean "int"? Write "\integer" to suppress this warning in /in/fa0VD on line 3
Searching for 6 in 1,2,3,4,5,6
Fatal error: Uncaught TypeError: binary_search(): Argument #2 ($target) must be of type integer, int given, called in /in/fa0VD on line 20 and defined in /in/fa0VD:3
Stack trace:
#0 /in/fa0VD(20): binary_search(Array, 6)
#1 {main}
thrown in /in/fa0VD on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Searching for 6 in 1,2,3,4,5,6
Fatal error: Uncaught TypeError: Argument 2 passed to binary_search() must be an instance of integer, int given, called in /in/fa0VD on line 20 and defined in /in/fa0VD:3
Stack trace:
#0 /in/fa0VD(20): binary_search(Array, 6)
#1 {main}
thrown in /in/fa0VD on line 3
Process exited with code 255.
Searching for 6 in 1,2,3,4,5,6
Fatal error: Uncaught TypeError: Argument 2 passed to binary_search() must be an instance of integer, integer given, called in /in/fa0VD on line 20 and defined in /in/fa0VD:3
Stack trace:
#0 /in/fa0VD(20): binary_search(Array, 6)
#1 {main}
thrown in /in/fa0VD on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Searching for 6 in 1,2,3,4,5,6
Catchable fatal error: Argument 2 passed to binary_search() must be an instance of integer, integer given, called in /in/fa0VD on line 20 and defined in /in/fa0VD on line 3
Process exited with code 255.