3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = ['1,23,45,123,145,200', '345,999,0,1', '0', '0,2', '-1,-122', '', '1.5,2.9']; foreach ($tests as $test) { var_export(explode(',', $test, 2)[0]); echo "\n"; }

preferences:
61.57 ms | 402 KiB | 5 Q