3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'sagar.surendra.desai'; $exp = explode('.', $string); print_r(array_values($exp)); $newArray = array(); foreach($exp as $val) { array_push() } print_r(array('sagar' => array('surendra' => array('desai' => 'test'))));
Output for 5.3.0 - 5.5.4
Parse error: syntax error, unexpected '}' in /in/ITVip on line 12
Process exited with code 255.