3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "this is a test"; $test = (array)$test; $test['add_a_key'] = "a new test"; print_r($test);
based on 3XY32
Output for 4.3.0 - 7.2.0
Array ( [0] => this is a test [add_a_key] => a new test )