3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "this is a test"; $test['add_a_key'] = "a new test"; print_r($test);
based on kuLmD
Output for 5.4.0 - 7.2.0
Warning: Illegal string offset 'add_a_key' in /in/3XY32 on line 3 ahis is a test
Output for 4.3.0 - 5.3.29
ahis is a test