3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [null, 0, '0', '', 'a', 'b,c,d', '1,2,3,4']; foreach ($tests as $test) { var_dump($test); echo " -> \n"; var_export(explode(',', $test)); echo "\n---\n"; }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
157.66 ms | 2193 KiB | 14 Q