3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
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, hhvm-3.10.0 - 3.12.0
NULL NULL NULL string(1) "s" NULL