3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( @reset($x)['dfsa'] ); $x = 3; var_dump( @reset($x)['dfsa'] ); $x = ['dfsa']; var_dump( 'd'['dfsa'] ); $x = [3 => ['dfsa' => 'Y']]; var_dump( @reset($x)['dfsa'] );
based on 243Hl
Output for 5.6.30, 7.0.30 - 7.3.0alpha1
NULL NULL Warning: Illegal string offset 'dfsa' in /in/ZINiv on line 9 string(1) "d" string(1) "Y"
Output for hhvm-3.18.5 - 3.22.0
NULL NULL string(1) "d" string(1) "Y"