3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = ''; $len = 100; $start = microtime(true); for ($i = 0; $i < $len; $i++) { $html .= 'a'; } var_dump(microtime(true) - $start); $html = ''; $start = microtime(true); $tmp = array(); for ($i = 0; $i < $len; $i++) { $tmp[] = 'a'; } $html = join('', $tmp); var_dump(microtime(true) - $start);
Output for 7.3.1
float(1.4066696166992E-5) float(5.9604644775391E-6)
Output for 7.3.0
float(2.4080276489258E-5) float(1.0013580322266E-5)
Output for 7.2.13
float(2.2172927856445E-5) float(1.0013580322266E-5)
Output for 7.2.12
float(2.7179718017578E-5) float(1.5974044799805E-5)
Output for 7.2.11
float(1.6927719116211E-5) float(1.215934753418E-5)
Output for 7.2.10
float(0.037309885025024) float(1.6212463378906E-5)
Output for 7.2.9
float(1.3828277587891E-5) float(1.215934753418E-5)
Output for 7.2.8
float(3.814697265625E-5) float(1.4066696166992E-5)
Output for 7.2.7
float(6.5088272094727E-5) float(1.5974044799805E-5)
Output for 7.2.6
float(2.0980834960938E-5) float(8.8214874267578E-6)
Output for 7.2.5
float(1.5020370483398E-5) float(0.00029182434082031)
Output for 7.2.4
float(1.8119812011719E-5) float(8.1062316894531E-6)
Output for 7.2.3
float(3.0994415283203E-5) float(2.3126602172852E-5)
Output for 7.2.2
float(2.6941299438477E-5) float(1.9073486328125E-5)
Output for 7.2.1
float(0.089017868041992) float(1.3828277587891E-5)
Output for 7.2.0
float(1.8835067749023E-5) float(7.8678131103516E-6)
Output for 7.1.25
float(0.0053319931030273) float(2.0027160644531E-5)
Output for 7.1.24
float(1.5974044799805E-5) float(1.4066696166992E-5)
Output for 7.1.23
float(1.5974044799805E-5) float(1.5020370483398E-5)
Output for 7.1.22
float(2.598762512207E-5) float(2.288818359375E-5)
Output for 7.1.17, 7.1.21
float(1.1920928955078E-5) float(1.3828277587891E-5)
Output for 7.1.20
float(1.7166137695312E-5) float(1.4066696166992E-5)
Output for 7.1.19
float(1.2874603271484E-5) float(1.2874603271484E-5)
Output for 7.1.18
float(2.3841857910156E-5) float(2.0027160644531E-5)
Output for 7.1.16
float(1.2874603271484E-5) float(1.4066696166992E-5)
Output for 7.1.15
float(1.215934753418E-5) float(1.8119812011719E-5)
Output for 7.1.14
float(1.9073486328125E-5) float(1.5020370483398E-5)
Output for 7.1.13
float(1.215934753418E-5) float(1.2874603271484E-5)
Output for 7.1.12
float(2.4795532226562E-5) float(2.4080276489258E-5)
Output for 7.1.11
float(2.0027160644531E-5) float(1.7166137695312E-5)
Output for 7.1.10
float(3.4093856811523E-5) float(2.9087066650391E-5)
Output for 7.1.9
float(2.288818359375E-5) float(2.0027160644531E-5)
Output for 7.1.8
float(3.6001205444336E-5) float(3.0994415283203E-5)
Output for 7.1.7
float(2.5033950805664E-5) float(1.8835067749023E-5)
Output for 7.1.6
float(2.0027160644531E-5) float(1.8119812011719E-5)
Output for 7.0.31, 7.1.5
float(1.9073486328125E-5) float(1.5974044799805E-5)
Output for 7.1.4
float(1.4781951904297E-5) float(1.6927719116211E-5)
Output for 7.1.3
float(3.0994415283203E-5) float(2.7179718017578E-5)
Output for 7.1.2
float(1.9073486328125E-5) float(2.598762512207E-5)
Output for 7.1.1
float(1.6927719116211E-5) float(1.3828277587891E-5)
Output for 7.1.0
float(2.8848648071289E-5) float(2.598762512207E-5)
Output for 7.0.32 - 7.0.33
float(2.4080276489258E-5) float(2.0027160644531E-5)
Output for 7.0.30
float(1.6927719116211E-5) float(1.4066696166992E-5)
Output for 7.0.29
float(5.1021575927734E-5) float(4.1007995605469E-5)
Output for 7.0.28
float(2.0027160644531E-5) float(1.6927719116211E-5)
Output for 7.0.27
float(2.0980834960938E-5) float(1.215934753418E-5)
Output for 7.0.26
float(2.9087066650391E-5) float(3.0994415283203E-5)
Output for 7.0.25
float(2.9087066650391E-5) float(4.2915344238281E-5)
Output for 7.0.24
float(1.6927719116211E-5) float(1.6927719116211E-5)
Output for 7.0.23
float(1.5974044799805E-5) float(1.7166137695312E-5)
Output for 7.0.22
float(1.3113021850586E-5) float(1.3828277587891E-5)
Output for 7.0.21
float(3.6001205444336E-5) float(2.288818359375E-5)
Output for 7.0.20
float(3.6001205444336E-5) float(2.4080276489258E-5)
Output for 7.0.19
float(2.0980834960938E-5) float(2.288818359375E-5)
Output for 7.0.18
float(1.2874603271484E-5) float(1.8835067749023E-5)
Output for 7.0.17
float(1.8119812011719E-5) float(1.0013580322266E-5)
Output for 7.0.16
float(2.9087066650391E-5) float(3.2186508178711E-5)
Output for 7.0.15
float(3.2186508178711E-5) float(2.598762512207E-5)
Output for 7.0.14
float(1.3113021850586E-5) float(1.4066696166992E-5)
Output for 7.0.2, 7.0.13
float(1.7881393432617E-5) float(1.5020370483398E-5)
Output for 7.0.11 - 7.0.12
float(1.2874603271484E-5) float(1.5020370483398E-5)
Output for 7.0.10
float(2.288818359375E-5) float(2.3126602172852E-5)
Output for 7.0.9
float(3.814697265625E-5) float(2.9802322387695E-5)
Output for 7.0.8
float(1.2874603271484E-5) float(1.3113021850586E-5)
Output for 7.0.7
float(2.0980834960938E-5) float(1.7881393432617E-5)
Output for 7.0.6
float(1.5020370483398E-5) float(1.5974044799805E-5)
Output for 7.0.5
float(1.8119812011719E-5) float(1.5020370483398E-5)
Output for 7.0.4
float(1.7881393432617E-5) float(1.9073486328125E-5)
Output for 7.0.3
float(1.5020370483398E-5) float(2.4080276489258E-5)
Output for 7.0.1
float(2.0027160644531E-5) float(2.7894973754883E-5)
Output for 5.4.26, 5.6.0, 7.0.0
float(2.5033950805664E-5) float(3.0994415283203E-5)
Output for 5.6.38
float(3.6001205444336E-5) float(6.103515625E-5)
Output for 5.6.37
float(4.4822692871094E-5) float(6.103515625E-5)
Output for 5.6.36
float(5.6028366088867E-5) float(0.00010395050048828)
Output for 5.6.35
float(2.3126602172852E-5) float(3.504753112793E-5)
Output for 5.6.34
float(2.8848648071289E-5) float(3.0994415283203E-5)
Output for 5.6.33
float(4.0054321289062E-5) float(6.1988830566406E-5)
Output for 5.6.29, 5.6.32
float(3.504753112793E-5) float(5.5074691772461E-5)
Output for 5.6.31
float(2.7894973754883E-5) float(3.7908554077148E-5)
Output for 5.6.30
float(4.3153762817383E-5) float(4.9114227294922E-5)
Output for 5.6.28
float(4.1961669921875E-5) float(5.9843063354492E-5)
Output for 5.4.3, 5.6.27
float(2.288818359375E-5) float(3.504753112793E-5)
Output for 5.6.26
float(4.1007995605469E-5) float(5.6028366088867E-5)
Output for 5.6.25
float(2.5033950805664E-5) float(3.3855438232422E-5)
Output for 5.6.24
float(1.8835067749023E-5) float(3.4093856811523E-5)
Output for 5.6.23
float(3.504753112793E-5) float(4.7922134399414E-5)
Output for 5.6.22
float(1.7881393432617E-5) float(3.0040740966797E-5)
Output for 5.6.21
float(3.0994415283203E-5) float(5.0067901611328E-5)
Output for 5.6.20
float(2.288818359375E-5) float(3.3855438232422E-5)
Output for 5.6.19
float(4.5061111450195E-5) float(0.0001068115234375)
Output for 5.4.39, 5.5.36, 5.6.18
float(2.6941299438477E-5) float(3.504753112793E-5)
Output for 5.6.17
float(2.6941299438477E-5) float(3.4809112548828E-5)
Output for 5.6.16
float(3.8862228393555E-5) float(6.3896179199219E-5)
Output for 5.6.15
float(2.9087066650391E-5) float(3.6001205444336E-5)
Output for 5.6.14
float(1.8835067749023E-5) float(2.8848648071289E-5)
Output for 5.6.13
float(4.1007995605469E-5) float(4.9114227294922E-5)
Output for 5.6.12
float(4.5061111450195E-5) float(5.0067901611328E-5)
Output for 5.6.11
float(2.8848648071289E-5) float(5.3882598876953E-5)
Output for 5.6.10
float(3.1948089599609E-5) float(7.2002410888672E-5)
Output for 5.6.9
float(3.2186508178711E-5) float(5.1021575927734E-5)
Output for 5.6.8
float(2.3126602172852E-5) float(4.6014785766602E-5)
Output for 5.6.7
float(3.3855438232422E-5) float(5.1975250244141E-5)
Output for 5.6.6
float(3.3140182495117E-5) float(4.4107437133789E-5)
Output for 5.6.5
float(2.2172927856445E-5) float(3.4093856811523E-5)
Output for 5.6.4
float(2.4080276489258E-5) float(4.1007995605469E-5)
Output for 5.6.3
float(2.8133392333984E-5) float(4.5061111450195E-5)
Output for 5.6.2
float(2.598762512207E-5) float(3.4093856811523E-5)
Output for 5.6.1
float(3.7908554077148E-5) float(7.2002410888672E-5)
Output for 5.5.38
float(3.504753112793E-5) float(4.9114227294922E-5)
Output for 5.5.37
float(2.598762512207E-5) float(3.3855438232422E-5)
Output for 5.5.35
float(3.9100646972656E-5) float(6.1988830566406E-5)
Output for 5.5.34
float(4.7922134399414E-5) float(6.103515625E-5)
Output for 5.5.33
float(3.0040740966797E-5) float(4.7922134399414E-5)
Output for 5.5.32
float(3.504753112793E-5) float(4.2915344238281E-5)
Output for 5.5.31
float(5.5074691772461E-5) float(7.3909759521484E-5)
Output for 5.5.30
float(4.6014785766602E-5) float(5.9127807617188E-5)
Output for 5.5.29
float(6.1988830566406E-5) float(7.9870223999023E-5)
Output for 5.5.28
float(4.1961669921875E-5) float(6.9856643676758E-5)
Output for 5.5.27
float(3.8862228393555E-5) float(4.1007995605469E-5)
Output for 5.5.26
float(5.1021575927734E-5) float(8.0108642578125E-5)
Output for 5.5.25
float(5.793571472168E-5) float(8.1062316894531E-5)
Output for 5.5.24
float(4.6968460083008E-5) float(3.6954879760742E-5)
Output for 5.5.23
float(4.6968460083008E-5) float(6.4849853515625E-5)
Output for 5.5.22
float(5.8889389038086E-5) float(9.608268737793E-5)
Output for 5.5.21
float(4.1961669921875E-5) float(6.1988830566406E-5)
Output for 5.5.20
float(5.6028366088867E-5) float(8.0108642578125E-5)
Output for 5.5.19
float(5.6982040405273E-5) float(9.7036361694336E-5)
Output for 5.5.18
float(4.8160552978516E-5) float(7.319450378418E-5)
Output for 5.5.17
float(3.0994415283203E-5) float(4.4822692871094E-5)
Output for 5.5.16
float(4.1007995605469E-5) float(5.0067901611328E-5)
Output for 5.5.15
float(5.0067901611328E-5) float(7.7009201049805E-5)
Output for 5.5.14
float(6.9141387939453E-5) float(7.7962875366211E-5)
Output for 5.5.13
float(3.0040740966797E-5) float(4.3153762817383E-5)
Output for 5.4.28, 5.5.12
float(3.0040740966797E-5) float(3.7908554077148E-5)
Output for 5.5.11
float(2.7179718017578E-5) float(4.4107437133789E-5)
Output for 5.5.10
float(2.9087066650391E-5) float(3.9815902709961E-5)
Output for 5.5.9
float(2.4080276489258E-5) float(3.0994415283203E-5)
Output for 5.5.8
float(4.2915344238281E-5) float(6.0081481933594E-5)
Output for 5.5.7
float(6.5088272094727E-5) float(0.00010299682617188)
Output for 5.5.6
float(2.288818359375E-5) float(3.6954879760742E-5)
Output for 5.5.5
float(2.598762512207E-5) float(3.9100646972656E-5)
Output for 5.5.4
float(2.7894973754883E-5) float(4.6014785766602E-5)
Output for 5.5.3
float(5.6982040405273E-5) float(8.2015991210938E-5)
Output for 5.5.2
float(4.0054321289062E-5) float(5.6982040405273E-5)
Output for 5.5.1
float(4.57763671875E-5) float(7.5101852416992E-5)
Output for 5.5.0
float(4.1961669921875E-5) float(6.6995620727539E-5)
Output for 5.4.45
float(3.8862228393555E-5) float(6.103515625E-5)
Output for 5.4.44
float(6.9141387939453E-5) float(8.392333984375E-5)
Output for 5.4.43
float(6.8187713623047E-5) float(8.2969665527344E-5)
Output for 5.4.42
float(6.8902969360352E-5) float(7.9870223999023E-5)
Output for 5.4.41
float(5.0067901611328E-5) float(8.1062316894531E-5)
Output for 5.4.40
float(6.5088272094727E-5) float(7.4148178100586E-5)
Output for 5.4.38
float(2.598762512207E-5) float(3.6954879760742E-5)
Output for 5.4.37
float(5.4121017456055E-5) float(7.9154968261719E-5)
Output for 5.4.36
float(4.0054321289062E-5) float(6.3180923461914E-5)
Output for 5.4.35
float(4.1007995605469E-5) float(6.1988830566406E-5)
Output for 5.4.34
float(3.9815902709961E-5) float(4.9829483032227E-5)
Output for 5.4.33
float(2.288818359375E-5) float(3.4093856811523E-5)
Output for 5.4.32
float(2.598762512207E-5) float(4.4107437133789E-5)
Output for 5.4.31
float(3.4093856811523E-5) float(4.4107437133789E-5)
Output for 5.4.29 - 5.4.30
float(3.0994415283203E-5) float(4.1961669921875E-5)
Output for 5.4.27
float(5.6028366088867E-5) float(7.2002410888672E-5)
Output for 5.4.25
float(5.793571472168E-5) float(7.9870223999023E-5)
Output for 5.4.24
float(6.1988830566406E-5) float(7.0095062255859E-5)
Output for 5.4.23
float(3.8862228393555E-5) float(6.0081481933594E-5)
Output for 5.4.22
float(2.3841857910156E-5) float(4.1007995605469E-5)
Output for 5.4.21
float(2.598762512207E-5) float(4.1007995605469E-5)
Output for 5.4.20
float(3.0040740966797E-5) float(4.6014785766602E-5)
Output for 5.4.19
float(5.1021575927734E-5) float(7.0095062255859E-5)
Output for 5.4.18
float(5.793571472168E-5) float(7.8916549682617E-5)
Output for 5.4.17
float(5.6982040405273E-5) float(8.0108642578125E-5)
Output for 5.4.16
float(3.6001205444336E-5) float(4.6968460083008E-5)
Output for 5.4.15
float(3.6001205444336E-5) float(5.793571472168E-5)
Output for 5.4.14
float(3.6001205444336E-5) float(4.887580871582E-5)
Output for 5.4.13
float(4.6968460083008E-5) float(7.4863433837891E-5)
Output for 5.4.12
float(4.0054321289062E-5) float(4.6014785766602E-5)
Output for 5.4.11
float(7.3909759521484E-5) float(8.8214874267578E-5)
Output for 5.4.10
float(2.1934509277344E-5) float(3.2901763916016E-5)
Output for 5.4.9
float(5.1975250244141E-5) float(8.1062316894531E-5)
Output for 5.4.8
float(3.7908554077148E-5) float(4.1007995605469E-5)
Output for 5.4.7
float(3.3855438232422E-5) float(4.2915344238281E-5)
Output for 5.4.6
float(4.5061111450195E-5) float(7.6055526733398E-5)
Output for 5.4.5
float(4.8160552978516E-5) float(8.2969665527344E-5)
Output for 5.4.4
float(3.6001205444336E-5) float(5.0067901611328E-5)
Output for 5.4.2
float(4.6968460083008E-5) float(7.5101852416992E-5)
Output for 5.4.1
float(5.793571472168E-5) float(8.0108642578125E-5)
Output for 5.4.0
float(7.4863433837891E-5) float(0.00011420249938965)
Output for 5.3.29
float(-6.7949295043945E-5) float(4.6968460083008E-5)
Output for 5.3.28
float(-7.0810317993164E-5) float(3.6954879760742E-5)
Output for 5.3.27
float(-4.9829483032227E-5) float(7.6055526733398E-5)
Output for 5.3.26
float(-3.9815902709961E-5) float(0.00010895729064941)
Output for 5.3.25
float(-4.4822692871094E-5) float(8.4161758422852E-5)
Output for 5.3.24
float(1.4066696166992E-5) float(6.2942504882812E-5)
Output for 5.3.23
float(-4.2915344238281E-5) float(9.3221664428711E-5)
Output for 5.3.22
float(-8.082389831543E-5) float(4.1007995605469E-5)
Output for 5.3.21
float(-7.0810317993164E-5) float(6.2942504882812E-5)
Output for 5.3.20
float(-7.7009201049805E-5) float(4.6014785766602E-5)
Output for 5.3.19
float(-5.2928924560547E-5) float(9.8943710327148E-5)
Output for 5.3.18
float(-6.1988830566406E-5) float(8.4161758422852E-5)
Output for 5.3.17
float(-7.5817108154297E-5) float(5.6028366088867E-5)
Output for 5.3.16
float(-5.5789947509766E-5) float(0.00010299682617188)
Output for 5.3.15
float(-7.2956085205078E-5) float(6.0081481933594E-5)
Output for 5.3.14
float(-3.7908554077148E-5) float(9.8943710327148E-5)
Output for 5.3.13
float(-6.9856643676758E-5) float(6.5088272094727E-5)
Output for 5.3.12
float(-5.2928924560547E-5) float(0.00011706352233887)
Output for 5.3.11
float(-7.7962875366211E-5) float(4.9829483032227E-5)
Output for 5.3.10
float(-6.5803527832031E-5) float(7.3909759521484E-5)
Output for 5.3.9
float(-3.6954879760742E-5) float(0.00012898445129395)
Output for 5.3.8
float(-6.9856643676758E-5) float(5.1021575927734E-5)
Output for 5.3.7
float(-6.8902969360352E-5) float(5.1021575927734E-5)
Output for 5.3.6
float(-7.4863433837891E-5) float(6.2227249145508E-5)
Output for 5.3.5
float(-5.9843063354492E-5) float(9.1075897216797E-5)
Output for 5.3.4
float(-7.2956085205078E-5) float(6.1988830566406E-5)
Output for 5.3.3
float(-7.0810317993164E-5) float(4.6014785766602E-5)
Output for 5.3.2
float(-7.3909759521484E-5) float(6.413459777832E-5)
Output for 5.3.1
float(-7.4863433837891E-5) float(5.0067901611328E-5)
Output for 5.3.0
float(-5.4836273193359E-5) float(9.2983245849609E-5)
Output for 5.2.17
float(-5.793571472168E-5) float(8.5115432739258E-5)
Output for 5.2.16
float(-4.887580871582E-5) float(0.00010585784912109)
Output for 5.2.15
float(-5.9843063354492E-5) float(8.1062316894531E-5)
Output for 5.2.14
float(-3.6954879760742E-5) float(0.00016283988952637)
Output for 5.2.13
float(-5.793571472168E-5) float(8.8930130004883E-5)
Output for 5.2.12
float(-5.0783157348633E-5) float(8.1777572631836E-5)
Output for 5.2.11
float(-5.6982040405273E-5) float(8.6069107055664E-5)
Output for 5.2.10
float(-7.8916549682617E-5) float(4.1007995605469E-5)
Output for 5.2.9
float(-6.7949295043945E-5) float(5.6028366088867E-5)
Output for 5.2.8
float(-5.2928924560547E-5) float(6.1988830566406E-5)
Output for 5.2.7
float(-6.7949295043945E-5) float(5.6982040405273E-5)
Output for 5.2.6
float(-2.1934509277344E-5) float(0.00010013580322266)
Output for 5.2.5
float(-5.8889389038086E-5) float(8.4877014160156E-5)
Output for 5.2.4
float(-5.793571472168E-5) float(0.00010514259338379)
Output for 5.2.3
float(-4.887580871582E-5) float(9.5129013061523E-5)
Output for 5.2.2
float(2.598762512207E-5) float(7.7962875366211E-5)
Output for 5.2.1
float(4.9114227294922E-5) float(9.608268737793E-5)
Output for 5.2.0
float(3.9815902709961E-5) float(6.103515625E-5)
Output for 5.1.6
float(4.1007995605469E-5) float(0.00012803077697754)
Output for 5.1.5
float(6.5088272094727E-5) float(0.00012588500976563)
Output for 5.1.4
float(6.2942504882813E-5) float(0.00015902519226074)
Output for 5.1.3
float(2.5033950805664E-5) float(5.1975250244141E-5)
Output for 5.1.2
float(3.0994415283203E-5) float(6.8902969360352E-5)
Output for 5.1.1
float(5.4121017456055E-5) float(0.00011801719665527)
Output for 5.1.0
float(4.1007995605469E-5) float(0.00010490417480469)
Output for 5.0.5
float(4.9114227294922E-5) float(8.392333984375E-5)
Output for 5.0.4
float(4.887580871582E-5) float(8.6069107055664E-5)
Output for 5.0.3
float(8.9883804321289E-5) float(0.00016283988952637)
Output for 5.0.2
float(0.0001060962677002) float(0.00018095970153809)
Output for 5.0.1
float(0.00011515617370605) float(0.00020503997802734)
Output for 5.0.0
float(8.2969665527344E-5) float(0.00014185905456543)
Output for 4.4.9
float(0.000114) float(0.000212)
Output for 4.4.8
float(8.9E-5) float(0.000181)
Output for 4.4.7
float(0.000127) float(0.000242)
Output for 4.4.6
float(6.3E-5) float(0.000129)
Output for 4.4.5
float(6.1E-5) float(0.000109)
Output for 4.4.4
float(0.000133) float(0.000237)
Output for 4.4.3
float(0.00013) float(0.000236)
Output for 4.4.2
float(0.000117) float(0.00022)
Output for 4.4.1
float(0.000107) float(0.000206)
Output for 4.4.0
float(8.0E-5) float(0.00014)
Output for 4.3.11
float(0.000117) float(0.000243)
Output for 4.3.10
float(7.2E-5) float(0.000147)
Output for 4.3.9
float(0.0001) float(0.000157)
Output for 4.3.8
float(6.7E-5) float(0.000107)
Output for 4.3.7
float(0.000141) float(0.000233)
Output for 4.3.6
float(9.2E-5) float(0.00015)
Output for 4.3.5
float(0.000133) float(0.000259)
Output for 4.3.4
float(0.000139) float(0.000253)
Output for 4.3.3
float(0.000106) float(0.000192)
Output for 4.3.2
float(0.000105) float(0.000195)
Output for 4.3.1
float(0.000105) float(0.000168)
Output for 4.3.0
float(8.9E-5) float(0.000127)