3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = date('Y-m-d'); print_r($date); print_r(preg_split('/[\/.-]/', $date)); print_r(split('[/.-]', $date));
Output for 7.0.0 - 7.1.0
2013-04-03Array ( [0] => 2013 [1] => 04 [2] => 03 ) Fatal error: Uncaught Error: Call to undefined function split() in /in/46ltk:9 Stack trace: #0 {main} thrown in /in/46ltk on line 9
Process exited with code 255.
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.13.2
2013-04-03Array ( [0] => 2013 [1] => 04 [2] => 03 ) Array ( [0] => 2013 [1] => 04 [2] => 03 )
Output for 5.3.0 - 5.6.28
2013-04-03Array ( [0] => 2013 [1] => 04 [2] => 03 ) Deprecated: Function split() is deprecated in /in/46ltk on line 9 Array ( [0] => 2013 [1] => 04 [2] => 03 )