3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); $n = 1000; $v = 12345; while($n--) { if ($v === (int) $v && $v > 0) { } } echo ($t - microtime(true));
Output for 7.1.0
-5.2928924560547E-5
Output for 5.4.0, 7.0.14
-5.1975250244141E-5
Output for 7.0.2, 7.0.6
-4.3869018554688E-5
Output for 7.0.5
-5.3882598876953E-5
Output for 7.0.4
-4.1961669921875E-5
Output for 7.0.3
-4.1007995605469E-5
Output for 5.5.12, 5.5.15, 7.0.1
-4.6014785766602E-5
Output for 7.0.0
-4.7922134399414E-5
Output for 5.4.4, 5.4.6, 5.4.8, 5.4.16, 5.4.23, 5.4.42, 5.5.10 - 5.5.11, 5.6.8, 5.6.10, 5.6.18, 5.6.28, hhvm-3.12.0
-7.2956085205078E-5
Output for 5.3.28, 5.4.22, 5.4.31, hhvm-3.10.0
-8.0108642578125E-5
Output for 5.2.2, 5.3.21, 5.5.4, 5.5.6, 5.5.25, 5.6.21
-7.6055526733398E-5
Output for 5.3.14, 5.6.20
-9.1075897216797E-5
Output for 5.6.19
-5.5074691772461E-5
Output for 5.4.39, 5.5.9, 5.5.21, 5.5.24, 5.5.27 - 5.5.29, 5.6.11 - 5.6.12, 5.6.17
-7.2002410888672E-5
Output for 5.6.6, 5.6.16
-6.2942504882812E-5
Output for 5.4.7, 5.4.41, 5.5.2, 5.6.1, 5.6.4, 5.6.7, 5.6.15
-7.5101852416992E-5
Output for 5.3.3, 5.6.2, 5.6.13 - 5.6.14
-6.6041946411133E-5
Output for 5.4.40, 5.6.9
-7.9870223999023E-5
Output for 5.3.2, 5.3.16, 5.3.26, 5.6.5
-8.2969665527344E-5
Output for 5.3.8, 5.6.3
-7.8916549682617E-5
Output for 5.2.12, 5.6.0
-0.00010299682617188
Output for 5.3.6, 5.3.25, 5.3.27, 5.5.18, 5.5.35
-8.1062316894531E-5
Output for 5.4.18, 5.4.26, 5.4.37, 5.5.34
-6.9856643676758E-5
Output for 5.2.8, 5.3.7, 5.4.35, 5.5.5, 5.5.20, 5.5.33
-7.4863433837891E-5
Output for 5.5.32
-5.8174133300781E-5
Output for 5.4.29, 5.5.19, 5.5.22, 5.5.31
-8.2015991210938E-5
Output for 5.5.30
-6.9141387939453E-5
Output for 5.5.26
-0.0001060962677002
Output for 5.5.23
-5.6028366088867E-5
Output for 5.5.16
-5.5789947509766E-5
Output for 5.2.3, 5.5.14
-6.8902969360352E-5
Output for 5.3.4, 5.4.11, 5.4.13, 5.4.19, 5.5.13
-7.7009201049805E-5
Output for 5.5.8
-8.392333984375E-5
Output for 5.2.5 - 5.2.6, 5.4.14, 5.4.32, 5.5.7
-6.6995620727539E-5
Output for 5.2.7, 5.5.3
-6.8187713623047E-5
Output for 5.5.1
-7.8201293945312E-5
Output for 5.4.20, 5.5.0
-8.4877014160156E-5
Output for 5.4.28, 5.4.45
-5.6982040405273E-5
Output for 5.4.5, 5.4.43 - 5.4.44
-7.3909759521484E-5
Output for 5.4.38
-5.9127807617188E-5
Output for 5.3.24, 5.4.17, 5.4.36
-7.1048736572266E-5
Output for 5.4.34
-5.1021575927734E-5
Output for 5.2.4, 5.3.20, 5.4.30
-6.413459777832E-5
Output for 5.4.24 - 5.4.25, 5.4.27
-7.4148178100586E-5
Output for 5.4.21
-0.0001220703125
Output for 5.4.15
-7.0095062255859E-5
Output for 5.4.12
-9.7036361694336E-5
Output for 5.3.9, 5.4.10
-6.7949295043945E-5
Output for 5.4.1, 5.4.9
-7.7962875366211E-5
Output for 5.4.3
-6.3180923461914E-5
Output for 5.4.2
-4.8160552978516E-5
Output for 5.3.29
-8.8930130004883E-5
Output for 5.3.23
-9.8943710327148E-5
Output for 5.3.22
-8.5115432739258E-5
Output for 5.3.1, 5.3.19
-8.702278137207E-5
Output for 5.3.18
-0.00015711784362793
Output for 5.3.17
-9.2983245849609E-5
Output for 5.3.15
-8.7976455688477E-5
Output for 5.2.9, 5.3.10, 5.3.13
-8.6069107055664E-5
Output for 5.2.15, 5.3.12
-9.0122222900391E-5
Output for 5.3.11
-5.3167343139648E-5
Output for 5.3.5
-0.0001070499420166
Output for 5.3.0
-0.00011396408081055
Output for 5.2.17
-0.00010395050048828
Output for 5.2.16
-0.00010800361633301
Output for 5.2.10, 5.2.14
-0.00011301040649414
Output for 5.2.13
-0.00011992454528809
Output for 5.2.11
-0.0001378059387207
Output for 5.2.1
-5.2928924560547E-05
Output for 5.2.0
-6.9856643676758E-05
Output for 5.1.6
-8.8930130004883E-05
Output for 5.1.5
-8.702278137207E-05
Output for 5.0.2, 5.1.4
-0.00013399124145508
Output for 5.1.3
-0.00012993812561035
Output for 5.1.2
-0.00011587142944336
Output for 5.1.1
-5.4836273193359E-05
Output for 5.1.0
-6.6995620727539E-05
Output for 5.0.5
-0.00013995170593262
Output for 5.0.4
-0.00013589859008789
Output for 5.0.3
-0.00013208389282227
Output for 5.0.1
-0.00015783309936523
Output for 5.0.0
-0.00016117095947266
Output for 4.4.9
-0.00017
Output for 4.4.8
-0.00016000000000005
Output for 4.4.6 - 4.4.7
-0.000164
Output for 4.3.11, 4.4.5
-0.00015999999999999
Output for 4.4.4
-0.000191
Output for 4.4.3
-0.00062999999999999
Output for 4.4.2
-0.00022100000000003
Output for 4.4.1
-0.000322
Output for 4.4.0
-0.00013800000000003
Output for 4.3.10
-0.000135
Output for 4.3.9
-0.00014099999999995
Output for 4.3.8
-0.000171
Output for 4.3.7
-0.000163
Output for 4.3.6
-0.00028500000000004
Output for 4.3.5
-0.00021900000000002
Output for 4.3.4
-0.00013300000000005
Output for 4.3.3
-0.000139
Output for 4.3.2
-0.00017699999999998
Output for 4.3.1
-0.00014199999999998
Output for 4.3.0
-0.00013699999999994