3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "2017-07-10 16:04:18 (4261) INFO : Running distributed import (mode 1) on all PMs... 2017-07-10 16:04:19 (4261) INFO : For table test.sales: 9 rows processed and 9 rows inserted. 2017-07-10 16:04:19 (4261) INFO : Bulk load completed, total run time : 1.03363 seconds"; $log = explode("2017", $str); echo $str; var_dump($log);
based on jnoZP
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
2017-07-10 16:04:18 (4261) INFO : Running distributed import (mode 1) on all PMs... 2017-07-10 16:04:19 (4261) INFO : For table test.sales: 9 rows processed and 9 rows inserted. 2017-07-10 16:04:19 (4261) INFO : Bulk load completed, total run time : 1.03363 secondsarray(4) { [0]=> string(0) "" [1]=> string(80) "-07-10 16:04:18 (4261) INFO : Running distributed import (mode 1) on all PMs... " [2]=> string(90) "-07-10 16:04:19 (4261) INFO : For table test.sales: 9 rows processed and 9 rows inserted. " [3]=> string(83) "-07-10 16:04:19 (4261) INFO : Bulk load completed, total run time : 1.03363 seconds" }