3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $starttime = microtime(true); $sArr = array(); for ($i = 0; $i < 300000; $i++) { $sArr[] = 'String concatenation. ' . $i; } $str = implode('', $sArr); $x = md5($str); $endtime = microtime(true); print "array append & implode: " . ($endtime - $starttime) . " s\n" ;
Output for 7.1.0
array append & implode: 0.057531833648682 s
Output for 7.0.14
array append & implode: 0.067620992660522 s
Output for 7.0.12
array append & implode: 0.064669132232666 s
Output for 7.0.6
array append & implode: 0.053583860397339 s
Output for 7.0.5
array append & implode: 0.051104068756104 s
Output for 7.0.4
array append & implode: 0.061365842819214 s
Output for 7.0.3
array append & implode: 0.11505603790283 s
Output for 7.0.2
array append & implode: 0.10813093185425 s
Output for 7.0.1
array append & implode: 0.06564998626709 s
Output for 7.0.0
array append & implode: 0.058397054672241 s
Output for 5.4.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 7077879 bytes) in /in/L5Qsp on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 6815799 bytes) in /in/L5Qsp on line 7
Process exited with code 255.
Output for 5.2.17
array append & implode: 0.10461497306824 s
Output for 5.2.16
array append & implode: 0.10349607467651 s
Output for 5.2.15
array append & implode: 0.10207104682922 s
Output for 5.2.14
array append & implode: 0.10790514945984 s
Output for 5.2.13
array append & implode: 0.11273908615112 s
Output for 5.2.12
array append & implode: 0.10233592987061 s
Output for 5.2.11
array append & implode: 0.10197496414185 s
Output for 5.2.10
array append & implode: 0.10413479804993 s
Output for 5.2.9
array append & implode: 0.10255789756775 s
Output for 5.2.8
array append & implode: 0.10308694839478 s
Output for 5.2.7
array append & implode: 0.10511088371277 s
Output for 5.2.6
array append & implode: 0.10385203361511 s
Output for 5.2.5
array append & implode: 0.13181209564209 s
Output for 5.2.4
array append & implode: 0.14927101135254 s
Output for 5.2.3
array append & implode: 0.12157797813416 s
Output for 5.2.2
array append & implode: 0.15411305427551 s
Output for 5.2.1
array append & implode: 0.13401007652283 s
Output for 5.2.0
array append & implode: 0.11145401000977 s
Output for 5.1.6
array append & implode: 0.21878695487976 s
Output for 5.1.5
array append & implode: 0.1970579624176 s
Output for 5.1.4
array append & implode: 0.21816992759705 s
Output for 5.1.3
array append & implode: 0.19028782844543 s
Output for 5.1.2
array append & implode: 0.21708106994629 s
Output for 5.1.1
array append & implode: 0.26470494270325 s
Output for 5.1.0
array append & implode: 0.20516300201416 s
Output for 5.0.5
array append & implode: 0.23966789245605 s
Output for 5.0.4
array append & implode: 0.21822810173035 s
Output for 5.0.3
array append & implode: 0.24170279502869 s
Output for 5.0.2
array append & implode: 0.25163602828979 s
Output for 5.0.1
array append & implode: 0.26552104949951 s
Output for 5.0.0
array append & implode: 0.23629593849182 s
Output for 4.4.9
array append & implode: -0.675584 s
Output for 4.4.8
array append & implode: 0.246781 s
Output for 4.4.7
array append & implode: 0.240912 s
Output for 4.4.6
array append & implode: 0.284827 s
Output for 4.4.5
array append & implode: 0.281717 s
Output for 4.4.4
array append & implode: 0.270096 s
Output for 4.4.3
array append & implode: 0.287834 s
Output for 4.4.2
array append & implode: -0.699085 s
Output for 4.4.1
array append & implode: 0.269079 s
Output for 4.4.0
array append & implode: 0.278548 s
Output for 4.3.11
array append & implode: -0.739451 s
Output for 4.3.10
array append & implode: 0.256596 s
Output for 4.3.9
array append & implode: -0.671694 s
Output for 4.3.8
array append & implode: 0.266888 s
Output for 4.3.7
array append & implode: -0.687068 s
Output for 4.3.6
array append & implode: 0.275375 s
Output for 4.3.5
array append & implode: 0.247884 s
Output for 4.3.4
array append & implode: 0.240183 s
Output for 4.3.3
array append & implode: -0.721125 s
Output for 4.3.2
array append & implode: 0.271087 s
Output for 4.3.1
array append & implode: 0.250133 s
Output for 4.3.0
array append & implode: 0.254397 s