3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $a = 5; $start = microtime(true); for ($i = 0; $i < 1000; $i++) { if ($a) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff); $start = microtime(true); for ($i = 0; $i < 1000; $i++) { if ($a != 0) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff);
Output for 7.1.0
float(2.4080276489258E-5) float(1.9073486328125E-5)
Output for 7.0.14
float(2.1934509277344E-5) float(1.8119812011719E-5)
Output for 7.0.11
float(2.4080276489258E-5) float(2.0980834960938E-5)
Output for 7.0.10
float(2.1934509277344E-5) float(1.7166137695312E-5)
Output for 7.0.9
float(2.598762512207E-5) float(1.5020370483398E-5)
Output for 7.0.5, 7.0.7 - 7.0.8
float(1.3113021850586E-5) float(1.0013580322266E-5)
Output for 7.0.6
float(1.3113021850586E-5) float(1.0967254638672E-5)
Output for 7.0.4
float(1.0013580322266E-5) float(9.0599060058594E-6)
Output for 7.0.1, 7.0.3
float(1.9073486328125E-5) float(1.5974044799805E-5)
Output for 7.0.2
float(1.1920928955078E-5) float(1.0013580322266E-5)
Output for 7.0.0
float(1.215934753418E-5) float(1.1205673217773E-5)
Output for hhvm-3.13.2
float(6.3180923461914E-5) float(7.319450378418E-5)
Output for hhvm-3.12.0
float(6.6041946411133E-5) float(7.4863433837891E-5)
Output for hhvm-3.10.0
float(7.7962875366211E-5) float(0.00012803077697754)
Output for 5.6.28
float(7.0095062255859E-5) float(7.7962875366211E-5)
Output for 5.6.26
float(4.1961669921875E-5) float(4.5061111450195E-5)
Output for 5.6.25
float(4.2915344238281E-5) float(5.8889389038086E-5)
Output for 5.6.24
float(4.1961669921875E-5) float(4.6014785766602E-5)
Output for 5.6.14, 5.6.20, 5.6.23
float(2.8848648071289E-5) float(3.0994415283203E-5)
Output for 5.6.22
float(4.6014785766602E-5) float(3.3140182495117E-5)
Output for 5.4.37, 5.6.21
float(2.9087066650391E-5) float(3.6001205444336E-5)
Output for 5.6.19
float(2.4080276489258E-5) float(3.504753112793E-5)
Output for 5.6.18
float(3.6001205444336E-5) float(4.0054321289062E-5)
Output for 5.6.17
float(4.5061111450195E-5) float(4.7922134399414E-5)
Output for 5.6.16
float(2.8133392333984E-5) float(3.0994415283203E-5)
Output for 5.6.15
float(4.3869018554688E-5) float(4.7922134399414E-5)
Output for 5.6.13
float(3.6001205444336E-5) float(3.9100646972656E-5)
Output for 5.6.12
float(3.2901763916016E-5) float(3.2901763916016E-5)
Output for 5.6.11
float(3.1948089599609E-5) float(4.1961669921875E-5)
Output for 5.6.10
float(2.4080276489258E-5) float(2.598762512207E-5)
Output for 5.6.9
float(2.9802322387695E-5) float(3.0994415283203E-5)
Output for 5.6.8
float(2.5033950805664E-5) float(2.5033950805664E-5)
Output for 5.5.36, 5.6.5, 5.6.7
float(2.9087066650391E-5) float(3.0994415283203E-5)
Output for 5.6.6
float(3.0040740966797E-5) float(3.0994415283203E-5)
Output for 5.6.4
float(2.9087066650391E-5) float(2.6941299438477E-5)
Output for 5.6.3
float(3.1948089599609E-5) float(3.504753112793E-5)
Output for 5.6.2
float(4.7922134399414E-5) float(5.0783157348633E-5)
Output for 5.6.1
float(3.814697265625E-5) float(4.1007995605469E-5)
Output for 5.6.0
float(4.6014785766602E-5) float(4.7922134399414E-5)
Output for 5.5.38
float(4.4107437133789E-5) float(4.6968460083008E-5)
Output for 5.5.37
float(4.9114227294922E-5) float(5.3882598876953E-5)
Output for 5.5.35
float(2.4080276489258E-5) float(2.6941299438477E-5)
Output for 5.5.34
float(2.3841857910156E-5) float(3.2901763916016E-5)
Output for 5.5.19, 5.5.21, 5.5.33
float(3.0040740966797E-5) float(3.1948089599609E-5)
Output for 5.5.32
float(2.4080276489258E-5) float(2.7894973754883E-5)
Output for 5.5.31
float(3.0040740966797E-5) float(3.9100646972656E-5)
Output for 5.5.30
float(3.0994415283203E-5) float(3.1948089599609E-5)
Output for 5.5.29
float(3.0040740966797E-5) float(3.4093856811523E-5)
Output for 5.5.28
float(3.4093856811523E-5) float(2.6941299438477E-5)
Output for 5.5.27
float(4.6014785766602E-5) float(2.598762512207E-5)
Output for 5.5.26
float(4.7922134399414E-5) float(5.1975250244141E-5)
Output for 5.5.25
float(3.2901763916016E-5) float(3.504753112793E-5)
Output for 5.5.24
float(2.9087066650391E-5) float(3.7193298339844E-5)
Output for 5.5.23
float(3.9100646972656E-5) float(4.1961669921875E-5)
Output for 5.4.45, 5.5.22
float(2.3841857910156E-5) float(2.598762512207E-5)
Output for 5.5.20
float(3.0040740966797E-5) float(3.2186508178711E-5)
Output for 5.5.18
float(3.9815902709961E-5) float(4.4107437133789E-5)
Output for 5.5.7, 5.5.16
float(4.7922134399414E-5) float(5.3167343139648E-5)
Output for 5.5.15
float(4.3869018554688E-5) float(5.9127807617188E-5)
Output for 5.5.14
float(4.57763671875E-5) float(4.9829483032227E-5)
Output for 5.5.13
float(4.1007995605469E-5) float(4.4107437133789E-5)
Output for 5.5.12
float(3.1232833862305E-5) float(3.3855438232422E-5)
Output for 5.5.11
float(4.6014785766602E-5) float(5.6982040405273E-5)
Output for 5.5.10
float(5.1021575927734E-5) float(5.4836273193359E-5)
Output for 5.3.25, 5.5.9
float(4.7922134399414E-5) float(6.7949295043945E-5)
Output for 5.5.8
float(7.9870223999023E-5) float(8.392333984375E-5)
Output for 5.3.16, 5.5.6
float(5.1021575927734E-5) float(6.103515625E-5)
Output for 5.5.5
float(3.6954879760742E-5) float(4.0054321289062E-5)
Output for 5.4.12, 5.5.4
float(4.5061111450195E-5) float(4.9829483032227E-5)
Output for 5.5.3
float(4.1961669921875E-5) float(5.3882598876953E-5)
Output for 5.5.2
float(2.8848648071289E-5) float(3.2186508178711E-5)
Output for 5.5.1
float(4.6014785766602E-5) float(4.9829483032227E-5)
Output for 5.5.0
float(5.7220458984375E-5) float(5.2928924560547E-5)
Output for 5.4.44
float(2.8848648071289E-5) float(3.3140182495117E-5)
Output for 5.4.43
float(2.7894973754883E-5) float(3.8862228393555E-5)
Output for 5.4.42
float(3.2901763916016E-5) float(3.6001205444336E-5)
Output for 5.4.41
float(3.8862228393555E-5) float(5.8174133300781E-5)
Output for 5.4.40
float(3.3140182495117E-5) float(3.8862228393555E-5)
Output for 5.4.39
float(3.8862228393555E-5) float(5.1975250244141E-5)
Output for 5.4.38
float(2.9087066650391E-5) float(3.1948089599609E-5)
Output for 5.4.36
float(3.814697265625E-5) float(4.0054321289062E-5)
Output for 5.4.35
float(2.288818359375E-5) float(2.598762512207E-5)
Output for 5.4.34
float(2.7894973754883E-5) float(3.2186508178711E-5)
Output for 5.4.21, 5.4.32
float(4.6968460083008E-5) float(5.5074691772461E-5)
Output for 5.4.31
float(3.7193298339844E-5) float(4.0054321289062E-5)
Output for 5.4.30
float(4.2915344238281E-5) float(4.7922134399414E-5)
Output for 5.4.29
float(4.6968460083008E-5) float(5.3167343139648E-5)
Output for 5.4.28
float(4.6014785766602E-5) float(5.1021575927734E-5)
Output for 5.4.27
float(4.5061111450195E-5) float(5.0067901611328E-5)
Output for 5.4.26
float(4.6014785766602E-5) float(5.0067901611328E-5)
Output for 5.4.25
float(5.0067901611328E-5) float(5.5074691772461E-5)
Output for 5.4.24
float(4.3869018554688E-5) float(6.103515625E-5)
Output for 5.4.23
float(4.1007995605469E-5) float(5.2928924560547E-5)
Output for 5.4.22
float(5.6982040405273E-5) float(5.1975250244141E-5)
Output for 5.4.20
float(4.2915344238281E-5) float(4.4107437133789E-5)
Output for 5.4.19
float(3.4093856811523E-5) float(3.7908554077148E-5)
Output for 5.4.18
float(4.6968460083008E-5) float(6.2942504882812E-5)
Output for 5.4.17
float(4.4107437133789E-5) float(4.6014785766602E-5)
Output for 5.4.16
float(3.9100646972656E-5) float(4.4107437133789E-5)
Output for 5.4.15
float(4.9114227294922E-5) float(5.1975250244141E-5)
Output for 5.4.14
float(4.6968460083008E-5) float(5.1975250244141E-5)
Output for 5.4.13
float(4.4822692871094E-5) float(5.6982040405273E-5)
Output for 5.4.11
float(5.3167343139648E-5) float(5.6028366088867E-5)
Output for 5.4.10
float(4.1007995605469E-5) float(4.6014785766602E-5)
Output for 5.4.7, 5.4.9
float(4.887580871582E-5) float(5.6028366088867E-5)
Output for 5.4.8
float(4.0054321289062E-5) float(4.3869018554688E-5)
Output for 5.4.6
float(3.6954879760742E-5) float(4.3153762817383E-5)
Output for 5.4.5
float(3.504753112793E-5) float(3.8862228393555E-5)
Output for 5.4.4
float(4.1961669921875E-5) float(4.7922134399414E-5)
Output for 5.4.3
float(4.3869018554688E-5) float(4.9829483032227E-5)
Output for 5.4.2
float(4.1961669921875E-5) float(6.0081481933594E-5)
Output for 5.4.1
float(4.9114227294922E-5) float(5.5074691772461E-5)
Output for 5.4.0
float(6.4849853515625E-5) float(5.4836273193359E-5)
Output for 5.3.29
float(5.1975250244141E-5) float(7.3909759521484E-5)
Output for 5.3.28
float(4.7922134399414E-5) float(5.5074691772461E-5)
Output for 5.3.27
float(7.3909759521484E-5) float(6.8902969360352E-5)
Output for 5.3.26
float(3.6954879760742E-5) float(4.2915344238281E-5)
Output for 5.3.24
float(5.8889389038086E-5) float(7.7009201049805E-5)
Output for 5.3.23
float(6.3896179199219E-5) float(6.6995620727539E-5)
Output for 5.3.22
float(6.1988830566406E-5) float(7.1048736572266E-5)
Output for 5.3.21
float(6.413459777832E-5) float(8.4877014160156E-5)
Output for 5.3.20
float(5.8174133300781E-5) float(7.2002410888672E-5)
Output for 5.3.19
float(4.8160552978516E-5) float(6.413459777832E-5)
Output for 5.3.18
float(6.4849853515625E-5) float(7.7009201049805E-5)
Output for 5.3.17
float(6.413459777832E-5) float(8.7976455688477E-5)
Output for 5.3.15
float(6.1988830566406E-5) float(7.2002410888672E-5)
Output for 5.3.12, 5.3.14
float(6.103515625E-5) float(7.1048736572266E-5)
Output for 5.3.13
float(5.793571472168E-5) float(6.6995620727539E-5)
Output for 5.3.11
float(5.6028366088867E-5) float(6.8902969360352E-5)
Output for 5.3.10
float(5.0783157348633E-5) float(5.8889389038086E-5)
Output for 5.3.9
float(5.3882598876953E-5) float(6.1988830566406E-5)
Output for 5.3.8
float(5.1975250244141E-5) float(6.9856643676758E-5)
Output for 5.3.7
float(5.8889389038086E-5) float(6.7949295043945E-5)
Output for 5.3.6
float(5.9127807617188E-5) float(7.2956085205078E-5)
Output for 5.3.5
float(5.9127807617188E-5) float(8.0108642578125E-5)
Output for 5.3.4
float(5.0067901611328E-5) float(5.793571472168E-5)
Output for 5.3.3
float(5.9127807617188E-5) float(6.7949295043945E-5)
Output for 5.3.2
float(5.3167343139648E-5) float(6.103515625E-5)
Output for 5.3.1
float(4.887580871582E-5) float(5.8174133300781E-5)
Output for 5.3.0
float(6.1988830566406E-5) float(7.8916549682617E-5)
Output for 5.2.17
float(7.7009201049805E-5) float(0.00011301040649414)
Output for 5.2.16
float(7.7009201049805E-5) float(9.608268737793E-5)
Output for 5.2.11, 5.2.15
float(7.7962875366211E-5) float(0.00010299682617188)
Output for 5.2.14
float(7.0095062255859E-5) float(9.2029571533203E-5)
Output for 5.2.13
float(7.3909759521484E-5) float(0.00012516975402832)
Output for 5.2.12
float(8.6069107055664E-5) float(0.00011301040649414)
Output for 5.2.10
float(8.392333984375E-5) float(0.00010800361633301)
Output for 5.2.9
float(8.5115432739258E-5) float(0.00010299682617188)
Output for 5.2.8
float(0.00014185905456543) float(0.00014686584472656)
Output for 5.2.7
float(8.6069107055664E-5) float(0.00010585784912109)
Output for 5.2.6
float(8.2015991210938E-5) float(0.00010514259338379)
Output for 5.2.5
float(7.1048736572266E-5) float(0.00010299682617188)
Output for 5.2.4
float(7.0095062255859E-5) float(0.00010108947753906)
Output for 5.2.3
float(5.1975250244141E-5) float(6.6995620727539E-5)
Output for 5.2.2
float(7.0095062255859E-5) float(9.3936920166016E-5)
Output for 5.2.1
float(8.7976455688477E-5) float(0.00010085105895996)
Output for 5.2.0
float(9.2029571533203E-5) float(0.00011086463928223)
Output for 5.1.6
float(7.5101852416992E-5) float(0.00010204315185547)
Output for 5.1.5
float(9.3936920166016E-5) float(0.00012516975402832)
Output for 5.1.4
float(7.5101852416992E-5) float(0.00011897087097168)
Output for 5.1.3
float(8.7976455688477E-5) float(0.00011181831359863)
Output for 5.1.2
float(8.7976455688477E-5) float(0.00011992454528809)
Output for 5.1.1
float(5.7220458984375E-5) float(6.413459777832E-5)
Output for 5.1.0
float(6.6995620727539E-5) float(9.8943710327148E-5)
Output for 5.0.5
float(0.00017380714416504) float(0.00021004676818848)
Output for 5.0.4
float(0.00022697448730469) float(0.0002739429473877)
Output for 5.0.3
float(0.00018787384033203) float(0.00022697448730469)
Output for 5.0.2
float(8.7976455688477E-5) float(0.00011110305786133)
Output for 5.0.1
float(0.00018811225891113) float(0.00022411346435547)
Output for 5.0.0
float(0.0001370906829834) float(0.00017905235290527)
Output for 4.4.9
float(0.000248) float(0.00029)
Output for 4.4.8
float(0.000243) float(0.000266)
Output for 4.4.7
float(0.000172) float(0.000191)
Output for 4.4.6
float(0.000227) float(0.000273)
Output for 4.4.5
float(0.000238) float(0.000277)
Output for 4.4.4
float(0.000186) float(0.000219)
Output for 4.4.3
float(0.000221) float(0.000251)
Output for 4.4.2
float(0.00011) float(0.000113)
Output for 4.4.1
float(0.000212) float(0.000264)
Output for 4.4.0
float(0.000232) float(0.000263)
Output for 4.3.11
float(0.0001) float(0.000113)
Output for 4.3.10
float(0.000245) float(0.000251)
Output for 4.3.9
float(0.000227) float(0.000248)
Output for 4.3.8
float(0.000215) float(0.00024)
Output for 4.3.7
float(0.000141) float(0.000105)
Output for 4.3.6
float(0.000245) float(0.000263)
Output for 4.3.5
float(9.7E-5) float(0.000102)
Output for 4.3.4
float(0.000167) float(0.000197)
Output for 4.3.3
float(0.000222) float(0.000252)
Output for 4.3.2
float(0.000226) float(0.000255)
Output for 4.3.1
float(0.000128) float(0.000142)
Output for 4.3.0
float(0.000237) float(0.000276)