<?php
spl_autoload_register('parse_str');
function test() {
$FooBar = 1;
class_exists('FooBar');
var_dump($FooBar);
}
test();
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
- Fatal error: Uncaught ArgumentCountError: parse_str() expects exactly 2 arguments, 1 given in /in/NJh0H:6
Stack trace:
#0 [internal function]: parse_str('FooBar')
#1 /in/NJh0H(6): class_exists('FooBar')
#2 /in/NJh0H(9): test()
#3 {main}
thrown in /in/NJh0H on line 6
Process exited with code 255. - Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
- Warning: Cannot call parse_str() with a single argument dynamically in /in/NJh0H on line 6
int(1)
- Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
- string(0) ""
preferences:
151.62 ms | 409 KiB | 5 Q