3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $true = true; $false = false; $one = 1; $string = 'string'; var_dump($true['it does not fucking matter'], $false['invalid']); var_dump($one['what about this']); var_dump($string['this?']); var_dump($true[0]);
based on m92WZ
Output for 5.4.0 - 7.1.10
NULL NULL NULL Warning: Illegal string offset 'this?' in /in/WE6Hv on line 10 string(1) "s" NULL
Output for 4.3.0 - 5.3.29
NULL NULL NULL string(1) "s" NULL