3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 22; var_dump($GLOBALS["a"]); // int 22 var_dump(array_search(22, $GLOBALS)); // false var_dump(array_search(22, $GLOBALS, true)); // false

preferences:
71.5 ms | 408 KiB | 5 Q