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?']);
based on C3QgH
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
NULL NULL NULL Warning: Illegal string offset 'this?' in /in/m92WZ on line 10 string(1) "s"
Output for 4.3.0 - 5.3.29, hhvm-3.12.0
NULL NULL NULL string(1) "s"
Output for hhvm-3.10.0

Process exited with code 153.