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 = implode($str, "2017"); echo $str; var_dump($log);
based on jrReY
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: implode(): Invalid arguments passed in /in/jnoZP on line 5 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 secondsNULL
Output for hhvm-3.15.4
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/jnoZP on line 5 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 secondsNULL