3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); $n = 10000; $v = 12345; while($n--) { if ($v === (int) $v && $v > 0) { } } echo (microtime(true) - $t);
Output for 7.1.0
0.00050711631774902
Output for 7.0.14
0.00044918060302734
Output for 7.0.7
0.00046110153198242
Output for 7.0.6
0.00037097930908203
Output for 7.0.5
0.00037908554077148
Output for 7.0.4
0.0002751350402832
Output for 7.0.3
0.00038814544677734
Output for 7.0.2
0.00043892860412598
Output for 7.0.1
0.00048303604125977
Output for 7.0.0
0.00043511390686035
Output for 5.6.28
0.00071597099304199
Output for 5.6.22
0.00066208839416504
Output for 5.6.21
0.0007472038269043
Output for 5.6.20
0.0007469654083252
Output for 5.6.19
0.0006558895111084
Output for 5.6.18
0.00078606605529785
Output for 5.6.17
0.00068783760070801
Output for 5.6.16
0.00058698654174805
Output for 5.5.36, 5.6.15
0.00060105323791504
Output for 5.6.14
0.00062680244445801
Output for 5.6.13
0.00065398216247559
Output for 5.6.12
0.00057816505432129
Output for 5.6.11
0.00062704086303711
Output for 5.3.10, 5.6.10
0.00072002410888672
Output for 5.6.9
0.0006260871887207
Output for 5.6.8
0.00046300888061523
Output for 5.4.45, 5.6.7
0.00059008598327637
Output for 5.6.4, 5.6.6
0.00076794624328613
Output for 5.6.5
0.00060391426086426
Output for 5.5.3, 5.6.3
0.00075793266296387
Output for 5.6.2
0.00045108795166016
Output for 5.6.1
0.00085282325744629
Output for 5.5.22, 5.6.0
0.0007929801940918
Output for 5.5.35
0.00066089630126953
Output for 5.5.34
0.00071215629577637
Output for 5.5.33
0.00052905082702637
Output for 5.5.32
0.00073504447937012
Output for 5.5.31
0.00060009956359863
Output for 5.5.30
0.00071907043457031
Output for 5.5.29
0.0006871223449707
Output for 5.5.28
0.00073385238647461
Output for 5.3.28, 5.5.27
0.0007479190826416
Output for 5.5.26
0.00044393539428711
Output for 5.5.25
0.00072407722473145
Output for 5.5.24
0.00057888031005859
Output for 5.5.18, 5.5.23
0.00074100494384766
Output for 5.5.21
0.00077009201049805
Output for 5.5.20
0.00060701370239258
Output for 5.4.14, 5.5.19
0.00053691864013672
Output for 5.5.16
0.00078201293945312
Output for 5.5.15
0.00075984001159668
Output for 5.4.20, 5.5.14
0.00075697898864746
Output for 5.5.13
0.00073003768920898
Output for 5.5.12
0.00068902969360352
Output for 5.5.11
0.00077414512634277
Output for 5.4.19, 5.5.10
0.00069689750671387
Output for 5.5.9
0.00081419944763184
Output for 5.4.27, 5.5.8
0.00069999694824219
Output for 5.5.7
0.00068187713623047
Output for 5.5.6
0.00077915191650391
Output for 5.5.5
0.00072097778320312
Output for 5.5.4
0.00067591667175293
Output for 5.5.2
0.0007021427154541
Output for 5.5.1
0.0006868839263916
Output for 5.4.44, 5.5.0
0.00060796737670898
Output for 5.3.7, 5.4.41, 5.4.43
0.00073695182800293
Output for 5.4.42
0.00042295455932617
Output for 5.4.40
0.00049781799316406
Output for 5.4.39
0.00063800811767578
Output for 5.4.38
0.0008080005645752
Output for 5.4.37
0.00075387954711914
Output for 5.4.36
0.00059199333190918
Output for 5.4.35
0.00073409080505371
Output for 5.4.34
0.00051403045654297
Output for 5.4.32
0.00066113471984863
Output for 5.4.31
0.00075888633728027
Output for 5.4.30
0.00074291229248047
Output for 5.4.29
0.00061893463134766
Output for 5.4.28
0.00075602531433105
Output for 5.4.26
0.00063300132751465
Output for 5.4.5, 5.4.25
0.00078701972961426
Output for 5.4.24
0.00064492225646973
Output for 5.4.23
0.0010480880737305
Output for 5.4.22
0.00066709518432617
Output for 5.4.21
0.00072598457336426
Output for 5.4.18
0.00072503089904785
Output for 5.4.17
0.00063395500183105
Output for 5.4.16
0.00073599815368652
Output for 5.4.15
0.00047397613525391
Output for 5.4.13
0.00078415870666504
Output for 5.4.12
0.00050592422485352
Output for 5.4.11
0.00065207481384277
Output for 5.4.10
0.00070309638977051
Output for 5.4.9
0.00074911117553711
Output for 5.4.8
0.00063419342041016
Output for 5.4.7
0.00074601173400879
Output for 5.4.6
0.00079798698425293
Output for 5.4.4
0.00067710876464844
Output for 5.4.3
0.00056099891662598
Output for 5.4.2
0.00058507919311523
Output for 5.4.1
0.00081706047058105
Output for 5.4.0
0.0007328987121582
Output for 5.3.29
0.00073099136352539
Output for 5.3.27
0.00080204010009766
Output for 5.3.26
0.00061798095703125
Output for 5.3.25
0.00053310394287109
Output for 5.3.24
0.00080299377441406
Output for 5.3.23
0.00074505805969238
Output for 5.3.22
0.00087594985961914
Output for 5.3.21
0.0008399486541748
Output for 5.3.20
0.00092792510986328
Output for 5.3.19
0.0009610652923584
Output for 5.3.18
0.00087189674377441
Output for 5.2.8, 5.3.17
0.00096702575683594
Output for 5.3.16
0.00066494941711426
Output for 5.3.15
0.00066304206848145
Output for 5.3.14
0.00079011917114258
Output for 5.3.13
0.00081110000610352
Output for 5.3.12
0.00062108039855957
Output for 5.3.11
0.00058889389038086
Output for 5.3.9
0.00089812278747559
Output for 5.3.8
0.0008540153503418
Output for 5.3.6
0.00085616111755371
Output for 5.3.5
0.00070786476135254
Output for 5.3.4
0.0009310245513916
Output for 5.3.3
0.00072884559631348
Output for 5.3.2
0.00075316429138184
Output for 5.3.1
0.00067496299743652
Output for 5.3.0
0.00083804130554199
Output for 5.2.17
0.0011200904846191
Output for 5.2.13, 5.2.16
0.0010850429534912
Output for 5.2.15
0.0011000633239746
Output for 5.2.11, 5.2.14
0.0011799335479736
Output for 5.2.12
0.0012121200561523
Output for 5.2.10
0.0015308856964111
Output for 5.2.9
0.0012269020080566
Output for 5.2.7
0.0010559558868408
Output for 5.2.6
0.0010600090026855
Output for 5.2.5
0.0012319087982178
Output for 5.2.4
0.00094699859619141
Output for 5.2.3
0.0010530948638916
Output for 5.2.2
0.0010130405426025
Output for 5.2.1
0.00097918510437012
Output for 5.2.0
0.0012059211730957
Output for 5.1.6
0.0012180805206299
Output for 5.1.5
0.0012490749359131
Output for 5.1.4
0.0012030601501465
Output for 5.1.3
0.0010988712310791
Output for 5.1.2
0.000885009765625
Output for 5.1.1
0.0010819435119629
Output for 5.1.0
0.0013179779052734
Output for 5.0.5
0.0034730434417725
Output for 5.0.4
0.0029861927032471
Output for 5.0.3
0.0024609565734863
Output for 5.0.2
0.0032839775085449
Output for 5.0.1
0.0026919841766357
Output for 5.0.0
0.0026090145111084
Output for 4.4.9
0.003045
Output for 4.4.8
0.002905
Output for 4.4.7
0.002552
Output for 4.4.6
0.002724
Output for 4.4.5
0.003254
Output for 4.4.4
0.003081
Output for 4.4.3
0.003529
Output for 4.4.2
0.00255
Output for 4.4.1
0.003359
Output for 4.3.8, 4.4.0
0.003188
Output for 4.3.11
0.003987
Output for 4.3.10
0.00273
Output for 4.3.9
0.003412
Output for 4.3.7
0.002172
Output for 4.3.6
0.00379
Output for 4.3.5
0.003006
Output for 4.3.4
0.002744
Output for 4.3.3
0.00246
Output for 4.3.2
0.003496
Output for 4.3.1
0.003337
Output for 4.3.0
0.003311