3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x . $y; var_dump(microtime(1) - $before); $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x .= $y; var_dump(microtime(1) - $before);
Output for 7.1.0
float(0.00036215782165527) float(9.5367431640625E-7)
Output for 7.0.14
float(0.00035786628723145) float(9.5367431640625E-7)
Output for 7.0.9
float(0.015953063964844) float(1.1920928955078E-6)
Output for 7.0.8
float(0.0050070285797119) float(9.5367431640625E-7)
Output for 7.0.7
float(0.0024149417877197) float(9.5367431640625E-7)
Output for 7.0.6
float(0.0020041465759277) float(9.5367431640625E-7)
Output for 7.0.5
float(0.0054140090942383) float(9.5367431640625E-7)
Output for 7.0.4
float(0.00050997734069824) float(9.5367431640625E-7)
Output for 7.0.3
float(0.0003659725189209) float(9.5367431640625E-7)
Output for 7.0.2
float(0.00050210952758789) float(9.5367431640625E-7)
Output for 7.0.1
float(0.00041699409484863) float(9.5367431640625E-7)
Output for 7.0.0
float(0.00049495697021484) float(1.1920928955078E-6)
Output for 5.6.28
float(0.00061297416687012) float(1.9073486328125E-6)
Output for 5.6.23
float(0.00076103210449219) float(9.5367431640625E-7)
Output for 5.6.22
float(0.00087499618530273) float(1.1920928955078E-6)
Output for 5.6.21
float(0.00089001655578613) float(9.5367431640625E-7)
Output for 5.4.12, 5.6.20
float(0.00078201293945312) float(9.5367431640625E-7)
Output for 5.6.19
float(0.00089406967163086) float(1.9073486328125E-6)
Output for 5.6.18
float(0.00057697296142578) float(1.1920928955078E-6)
Output for 5.6.17
float(0.00075387954711914) float(9.5367431640625E-7)
Output for 5.6.16
float(0.00085592269897461) float(1.9073486328125E-6)
Output for 5.5.13, 5.6.15
float(0.00084805488586426) float(9.5367431640625E-7)
Output for 5.6.14
float(0.00069713592529297) float(1.1920928955078E-6)
Output for 5.6.13
float(0.00086688995361328) float(1.1920928955078E-6)
Output for 5.6.12
float(0.00082707405090332) float(9.5367431640625E-7)
Output for 5.4.21, 5.6.11
float(0.00072288513183594) float(9.5367431640625E-7)
Output for 5.6.10
float(0.00074601173400879) float(1.1920928955078E-6)
Output for 5.6.9
float(0.00080299377441406) float(1.1920928955078E-6)
Output for 5.6.8
float(0.00069189071655273) float(9.5367431640625E-7)
Output for 5.6.7
float(0.00089001655578613) float(1.9073486328125E-6)
Output for 5.6.6
float(0.0008389949798584) float(2.1457672119141E-6)
Output for 5.6.5
float(0.00079083442687988) float(9.5367431640625E-7)
Output for 5.6.4
float(0.00074601173400879) float(9.5367431640625E-7)
Output for 5.6.3
float(0.0007169246673584) float(1.1920928955078E-6)
Output for 5.6.2
float(0.00077986717224121) float(1.1920928955078E-6)
Output for 5.6.1
float(0.00085806846618652) float(9.5367431640625E-7)
Output for 5.6.0
float(0.000946044921875) float(2.1457672119141E-6)
Output for 5.5.37
float(0.00092911720275879) float(1.9073486328125E-6)
Output for 5.5.36
float(0.00088906288146973) float(1.1920928955078E-6)
Output for 5.5.35
float(0.00088620185852051) float(9.5367431640625E-7)
Output for 5.5.34
float(0.00075292587280273) float(2.1457672119141E-6)
Output for 5.5.0, 5.5.33
float(0.00086498260498047) float(9.5367431640625E-7)
Output for 5.5.32
float(0.00083184242248535) float(1.1920928955078E-6)
Output for 5.5.31
float(0.00080490112304688) float(9.5367431640625E-7)
Output for 5.5.30
float(0.00085997581481934) float(2.1457672119141E-6)
Output for 5.5.29
float(0.0007169246673584) float(1.9073486328125E-6)
Output for 5.5.28
float(0.0006871223449707) float(9.5367431640625E-7)
Output for 5.5.27
float(0.00076913833618164) float(9.5367431640625E-7)
Output for 5.5.26
float(0.00076484680175781) float(9.5367431640625E-7)
Output for 5.5.25
float(0.00056600570678711) float(9.5367431640625E-7)
Output for 5.5.24
float(0.0006260871887207) float(9.5367431640625E-7)
Output for 5.5.23
float(0.00078582763671875) float(1.9073486328125E-6)
Output for 5.5.22
float(0.00070786476135254) float(9.5367431640625E-7)
Output for 5.4.13, 5.5.21
float(0.0008702278137207) float(9.5367431640625E-7)
Output for 5.5.20
float(0.00084590911865234) float(1.1920928955078E-6)
Output for 5.5.19
float(0.00065994262695312) float(1.1920928955078E-6)
Output for 5.5.18
float(0.00077986717224121) float(9.5367431640625E-7)
Output for 5.5.16
float(0.00077199935913086) float(9.5367431640625E-7)
Output for 5.4.41, 5.5.15
float(0.00079488754272461) float(1.9073486328125E-6)
Output for 5.5.14
float(0.00075197219848633) float(2.1457672119141E-6)
Output for 5.5.12
float(0.00084710121154785) float(9.5367431640625E-7)
Output for 5.5.11
float(0.00078392028808594) float(9.5367431640625E-7)
Output for 5.5.10
float(0.00082612037658691) float(1.1920928955078E-6)
Output for 5.5.9
float(0.00085711479187012) float(1.9073486328125E-6)
Output for 5.5.8
float(0.00072598457336426) float(1.9073486328125E-6)
Output for 5.5.7
float(0.00082087516784668) float(9.5367431640625E-7)
Output for 5.5.6
float(0.00079798698425293) float(9.5367431640625E-7)
Output for 5.4.0, 5.5.5
float(0.0008540153503418) float(2.1457672119141E-6)
Output for 5.5.4
float(0.00080704689025879) float(1.1920928955078E-6)
Output for 5.5.3
float(0.00076198577880859) float(9.5367431640625E-7)
Output for 5.5.2
float(0.00077581405639648) float(9.5367431640625E-7)
Output for 5.5.1
float(0.00084877014160156) float(9.5367431640625E-7)
Output for 5.4.45
float(0.00075292587280273) float(9.5367431640625E-7)
Output for 5.2.12, 5.3.14, 5.4.44
float(0.00084209442138672) float(9.5367431640625E-7)
Output for 5.4.43
float(0.00072813034057617) float(1.9073486328125E-6)
Output for 5.4.42
float(0.00080513954162598) float(9.5367431640625E-7)
Output for 5.4.40
float(0.0009000301361084) float(1.9073486328125E-6)
Output for 5.4.39
float(0.00083494186401367) float(9.5367431640625E-7)
Output for 5.4.38
float(0.00067400932312012) float(9.5367431640625E-7)
Output for 5.4.37
float(0.0008089542388916) float(2.1457672119141E-6)
Output for 5.4.36
float(0.0008552074432373) float(9.5367431640625E-7)
Output for 5.4.35
float(0.00074481964111328) float(9.5367431640625E-7)
Output for 5.4.34
float(0.00081682205200195) float(2.1457672119141E-6)
Output for 5.4.32
float(0.00085306167602539) float(2.1457672119141E-6)
Output for 5.4.31
float(0.00057291984558105) float(1.1920928955078E-6)
Output for 5.4.30
float(0.00086522102355957) float(1.1920928955078E-6)
Output for 5.4.29
float(0.00064492225646973) float(0)
Output for 5.4.28
float(0.0007779598236084) float(9.5367431640625E-7)
Output for 5.4.10, 5.4.27
float(0.00085806846618652) float(1.9073486328125E-6)
Output for 5.4.26
float(0.00084710121154785) float(2.1457672119141E-6)
Output for 5.4.25
float(0.00090122222900391) float(1.9073486328125E-6)
Output for 5.4.24
float(0.00084114074707031) float(9.5367431640625E-7)
Output for 5.4.23
float(0.0008540153503418) float(1.1920928955078E-6)
Output for 5.4.22
float(0.00082993507385254) float(9.5367431640625E-7)
Output for 5.4.20
float(0.00072598457336426) float(1.1920928955078E-6)
Output for 5.4.4, 5.4.19
float(0.00085902214050293) float(9.5367431640625E-7)
Output for 5.4.18
float(0.00058293342590332) float(9.5367431640625E-7)
Output for 5.4.17
float(0.00085186958312988) float(9.5367431640625E-7)
Output for 5.4.16
float(0.00088787078857422) float(9.5367431640625E-7)
Output for 5.4.15
float(0.00076508522033691) float(1.9073486328125E-6)
Output for 5.4.14
float(0.00060319900512695) float(9.5367431640625E-7)
Output for 5.4.11
float(0.00066614151000977) float(9.5367431640625E-7)
Output for 5.4.9
float(0.00086307525634766) float(1.9073486328125E-6)
Output for 5.4.8
float(0.00076794624328613) float(9.5367431640625E-7)
Output for 5.4.7
float(0.00080394744873047) float(9.5367431640625E-7)
Output for 5.4.6
float(0.00081801414489746) float(9.5367431640625E-7)
Output for 5.4.5
float(0.00063705444335938) float(9.5367431640625E-7)
Output for 5.4.3
float(0.00083112716674805) float(9.5367431640625E-7)
Output for 5.4.2
float(0.00081205368041992) float(9.5367431640625E-7)
Output for 5.4.1
float(0.00078105926513672) float(1.9073486328125E-6)
Output for 5.3.29
float(0.00056004524230957) float(1.1920928955078E-6)
Output for 5.3.28
float(0.000762939453125) float(9.5367431640625E-7)
Output for 5.3.27
float(0.00083589553833008) float(9.5367431640625E-7)
Output for 5.3.26
float(0.00066709518432617) float(9.5367431640625E-7)
Output for 5.3.1, 5.3.25
float(0.0008389949798584) float(9.5367431640625E-7)
Output for 5.3.24
float(0.0009009838104248) float(9.5367431640625E-7)
Output for 5.3.23
float(0.00063109397888184) float(1.1920928955078E-6)
Output for 5.3.22
float(0.00065803527832031) float(9.5367431640625E-7)
Output for 5.3.21
float(0.00080108642578125) float(1.1920928955078E-6)
Output for 5.3.20
float(0.00088787078857422) float(2.1457672119141E-6)
Output for 5.3.19
float(0.00071287155151367) float(9.5367431640625E-7)
Output for 5.3.18
float(0.00081706047058105) float(9.5367431640625E-7)
Output for 5.3.17
float(0.00080204010009766) float(1.1920928955078E-6)
Output for 5.3.16
float(0.00070500373840332) float(0)
Output for 5.3.15
float(0.00081491470336914) float(1.9073486328125E-6)
Output for 5.3.13
float(0.00059914588928223) float(0)
Output for 5.3.12
float(0.00079107284545898) float(9.5367431640625E-7)
Output for 5.3.11
float(0.00081300735473633) float(9.5367431640625E-7)
Output for 5.3.10
float(0.00084400177001953) float(9.5367431640625E-7)
Output for 5.3.9
float(0.0005791187286377) float(9.5367431640625E-7)
Output for 5.3.8
float(0.0005791187286377) float(0)
Output for 5.3.7
float(0.00059294700622559) float(0)
Output for 5.3.6
float(0.00082612037658691) float(9.5367431640625E-7)
Output for 5.3.5
float(0.00093889236450195) float(9.5367431640625E-7)
Output for 5.3.4
float(0.00056099891662598) float(9.5367431640625E-7)
Output for 5.3.3
float(0.000823974609375) float(9.5367431640625E-7)
Output for 5.3.2
float(0.00086593627929688) float(1.1920928955078E-6)
Output for 5.3.0
float(0.00084900856018066) float(1.1920928955078E-6)
Output for 5.2.17
float(0.00085115432739258) float(1.1920928955078E-6)
Output for 5.2.16
float(0.00085592269897461) float(9.5367431640625E-7)
Output for 5.2.15
float(0.0009620189666748) float(1.9073486328125E-6)
Output for 5.2.14
float(0.00086808204650879) float(1.1920928955078E-6)
Output for 5.2.13
float(0.00090503692626953) float(9.5367431640625E-7)
Output for 5.2.11
float(0.0009310245513916) float(9.5367431640625E-7)
Output for 5.2.10
float(0.00086402893066406) float(1.9073486328125E-6)
Output for 5.2.9
float(0.00089812278747559) float(9.5367431640625E-7)
Output for 5.2.8
float(0.00061392784118652) float(9.5367431640625E-7)
Output for 5.2.7
float(0.00060892105102539) float(9.5367431640625E-7)
Output for 5.2.6
float(0.00084614753723145) float(1.1920928955078E-6)
Output for 5.2.5
float(0.00078701972961426) float(2.1457672119141E-6)
Output for 5.2.4
float(0.00091981887817383) float(9.5367431640625E-7)
Output for 5.2.3
float(0.00099897384643555) float(9.5367431640625E-7)
Output for 5.2.2
float(0.00070095062255859) float(1.1920928955078E-6)
Output for 5.2.1
float(0.00096392631530762) float(9.5367431640625E-7)
Output for 5.2.0
float(0.00084590911865234) float(9.5367431640625E-7)
Output for 5.1.6
float(0.00080084800720215) float(9.5367431640625E-7)
Output for 5.1.5
float(0.00084805488586426) float(1.1920928955078E-6)
Output for 5.1.4
float(0.00085687637329102) float(9.5367431640625E-7)
Output for 5.1.3
float(0.0010020732879639) float(1.9073486328125E-6)
Output for 5.1.2
float(0.00083684921264648) float(1.9073486328125E-6)
Output for 5.1.1
float(0.00080299377441406) float(1.9073486328125E-6)
Output for 5.1.0
float(0.00097417831420898) float(2.1457672119141E-6)
Output for 5.0.5
float(0.00090503692626953) float(1.9073486328125E-6)
Output for 5.0.4
float(0.0010130405426025) float(1.9073486328125E-6)
Output for 5.0.3
float(0.00092792510986328) float(3.0994415283203E-6)
Output for 5.0.2
float(0.00095796585083008) float(1.9073486328125E-6)
Output for 5.0.1
float(0.0009009838104248) float(1.9073486328125E-6)
Output for 5.0.0
float(0.00072622299194336) float(1.9073486328125E-6)
Output for 4.4.9
float(0.001056) float(4.0000000000001E-6)
Output for 4.4.8
float(0.001069) float(4.0000000000001E-6)
Output for 4.4.7
float(0.000866) float(3.9999999999997E-6)
Output for 4.4.6
float(0.000996) float(3.0E-6)
Output for 4.4.5
float(0.001057) float(4.0000000000001E-6)
Output for 4.4.4
float(0.00094) float(2.0000000000003E-6)
Output for 4.4.3
float(0.001038) float(4.0000000000001E-6)
Output for 4.4.2
float(0.000963) float(4.9999999999998E-6)
Output for 4.4.1
float(0.000974) float(3.0E-6)
Output for 4.4.0
float(0.000902) float(3.0E-6)
Output for 4.3.11
float(0.001079) float(3.0E-6)
Output for 4.3.10
float(0.001011) float(3.0E-6)
Output for 4.3.9
float(0.001098) float(4.9999999999998E-6)
Output for 4.3.8
float(0.000886) float(7.0000000000001E-6)
Output for 4.3.7
float(0.001051) float(5.0000000000002E-6)
Output for 4.3.6
float(0.000872) float(3.9999999999997E-6)
Output for 4.3.5
float(0.000957) float(5.9999999999999E-6)
Output for 4.3.4
float(0.00125) float(4.0000000000001E-6)
Output for 4.3.3
float(0.000911) float(4.0000000000001E-6)
Output for 4.3.2
float(0.000928) float(5.9999999999999E-6)
Output for 4.3.1
float(0.000919) float(5.9999999999999E-6)
Output for 4.3.0
float(0.000965) float(5.9999999999999E-6)