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($str, "2017"); echo $str; var_dump($log);
based on TAPX2
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
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(1) { [0]=> string(4) "2017" }