3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getVehicleType($id, $types) { $types = explode(';', $types); echo print_r($types); } getVehicleType(1, '1 - teste;2 - teste;3 - teste;') ?>
based on nOli3
Output for 4.3.0 - 7.2.0
Array ( [0] => 1 - teste [1] => 2 - teste [2] => 3 - teste [3] => ) 1