3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array( 'class' => new stdClass(), 'number' => 333 ); $x['class']->evilive = 123; $y = $x; $y['class']->evilive = 444; $y['number'] = 555; var_dump($x, $y)
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected end of file in /in/vdC4X on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/vdC4X on line 10
Process exited with code 255.