3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( 'test' => 'testing', ); print_r($data); $data['test']['testing'] = 'hi'; print_r($data);
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Array ( [test] => testing ) Warning: Illegal string offset 'testing' in /in/6iaDE on line 9 Array ( [test] => hesting )
Output for 4.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
Array ( [test] => testing ) Array ( [test] => hesting )