3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red', 'blue', 'black'); $kk = explode(',',$color); print_r($kk);
Output for 5.3.1 - 7.2.0
Warning: explode() expects parameter 2 to be string, array given in /in/TfLO2 on line 3
Output for 4.3.0 - 5.3.0
Notice: Array to string conversion in /in/TfLO2 on line 3 Array ( [0] => Array )