3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateStart = '2016*12*31'; list($yS, $mS, $dS) = split("[/.-]", $dateStart); echo $dS;
Output for 7.3.24 - 7.3.33, 7.4.12 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Call to undefined function split() in /in/aQ3uv:3 Stack trace: #0 {main} thrown in /in/aQ3uv on line 3
Process exited with code 255.

preferences:
117.65 ms | 403 KiB | 119 Q