3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); $n = 1000000; $v = 12345; while($n--) { if ($v === (int) $v && $v > 0) { } } echo (microtime(true) - $t);
Output for 7.1.0
0.045706033706665
Output for 7.0.14
0.043493032455444
Output for 7.0.10
0.036063194274902
Output for 7.0.9
0.03879189491272
Output for 7.0.8
0.043287038803101
Output for 7.0.7
0.032129049301147
Output for 7.0.6
0.039353132247925
Output for 7.0.5
0.028427124023438
Output for 7.0.4
0.027961015701294
Output for 7.0.3
0.043901205062866
Output for 7.0.2
0.039204120635986
Output for 7.0.1
0.040167808532715
Output for 7.0.0
0.04323410987854
Output for hhvm-3.12.0
0.088897943496704
Output for hhvm-3.10.0
0.15280294418335
Output for 5.6.28
0.065525054931641
Output for 5.6.25
0.055325031280518
Output for 5.6.24
0.052048921585083
Output for 5.6.23
0.058919191360474
Output for 5.6.22
0.055541038513184
Output for 5.6.21
0.053405046463013
Output for 5.6.20
0.043975830078125
Output for 5.6.19
0.056211948394775
Output for 5.6.18
0.054120063781738
Output for 5.6.17
0.07199501991272
Output for 5.6.16
0.074843883514404
Output for 5.6.15
0.050312995910645
Output for 5.6.14
0.057269096374512
Output for 5.6.13
0.062582969665527
Output for 5.6.12
0.053669929504395
Output for 5.6.11
0.051247119903564
Output for 5.6.10
0.061861991882324
Output for 5.6.9
0.063332796096802
Output for 5.6.8
0.051403045654297
Output for 5.6.7
0.049391031265259
Output for 5.6.6
0.061881065368652
Output for 5.6.5
0.054526090621948
Output for 5.6.4
0.064291000366211
Output for 5.6.3
0.065680980682373
Output for 5.6.2
0.053358793258667
Output for 5.6.1
0.059360027313232
Output for 5.6.0
0.053967952728271
Output for 5.5.38
0.056241035461426
Output for 5.5.37
0.054470777511597
Output for 5.5.36
0.058327913284302
Output for 5.5.35
0.049145936965942
Output for 5.5.34
0.064023971557617
Output for 5.5.33
0.058138847351074
Output for 5.5.32
0.050933122634888
Output for 5.5.31
0.047876119613647
Output for 5.5.30
0.05439305305481
Output for 5.5.29
0.057620048522949
Output for 5.5.28
0.052801132202148
Output for 5.5.27
0.062973976135254
Output for 5.5.26
0.059061765670776
Output for 5.5.25
0.057947874069214
Output for 5.5.24
0.050616025924683
Output for 5.5.23
0.066243171691895
Output for 5.5.22
0.065294027328491
Output for 5.5.21
0.054898023605347
Output for 5.5.20
0.057942152023315
Output for 5.5.19
0.059786081314087
Output for 5.5.18
0.072316884994507
Output for 5.5.16
0.067132949829102
Output for 5.5.15
0.055399894714355
Output for 5.5.14
0.057114839553833
Output for 5.5.13
0.048228025436401
Output for 5.5.12
0.053992986679077
Output for 5.5.11
0.04937219619751
Output for 5.5.10
0.060266971588135
Output for 5.5.9
0.065359830856323
Output for 5.5.8
0.058613061904907
Output for 5.5.7
0.043964862823486
Output for 5.5.6
0.043703079223633
Output for 5.5.5
0.049137115478516
Output for 5.5.4
0.043657064437866
Output for 5.5.3
0.053359031677246
Output for 5.5.2
0.044940948486328
Output for 5.5.1
0.043519020080566
Output for 5.5.0
0.044648885726929
Output for 5.4.45
0.042312145233154
Output for 5.4.44
0.055123090744019
Output for 5.4.43
0.063716888427734
Output for 5.4.42
0.04726505279541
Output for 5.4.41
0.047729969024658
Output for 5.4.40
0.052126884460449
Output for 5.4.39
0.059727907180786
Output for 5.4.38
0.056374073028564
Output for 5.4.37
0.045557975769043
Output for 5.4.36
0.053154945373535
Output for 5.4.35
0.063222885131836
Output for 5.4.34
0.042383193969727
Output for 5.4.32
0.05929708480835
Output for 5.4.31
0.050947904586792
Output for 5.4.30
0.056813955307007
Output for 5.4.29
0.045029163360596
Output for 5.4.28
0.049230813980103
Output for 5.4.27
0.042611122131348
Output for 5.4.26
0.054359912872314
Output for 5.4.25
0.053834199905396
Output for 5.4.24
0.050184011459351
Output for 5.4.23
0.053870916366577
Output for 5.4.22
0.042448997497559
Output for 5.4.21
0.042561054229736
Output for 5.4.20
0.04449987411499
Output for 5.4.19
0.042804956436157
Output for 5.4.18
0.055466890335083
Output for 5.4.17
0.056174039840698
Output for 5.4.16
0.043635129928589
Output for 5.4.15
0.042260885238647
Output for 5.4.14
0.042386054992676
Output for 5.4.13
0.046312808990479
Output for 5.4.12
0.042930841445923
Output for 5.4.11
0.049913883209229
Output for 5.4.10
0.044424057006836
Output for 5.4.9
0.041283130645752
Output for 5.4.8
0.042840003967285
Output for 5.4.7
0.035638093948364
Output for 5.4.6
0.04195499420166
Output for 5.4.5
0.042140960693359
Output for 5.4.4
0.045398950576782
Output for 5.4.3
0.056391954421997
Output for 5.4.2
0.056241989135742
Output for 5.4.1
0.056686162948608
Output for 5.4.0
0.052462100982666
Output for 5.3.29
0.048686027526855
Output for 5.3.28
0.047172069549561
Output for 5.3.27
0.044602870941162
Output for 5.3.26
0.049722194671631
Output for 5.3.25
0.048394203186035
Output for 5.3.24
0.060608863830566
Output for 5.3.23
0.050418138504028
Output for 5.3.22
0.047390937805176
Output for 5.3.21
0.054938077926636
Output for 5.3.20
0.058335065841675
Output for 5.3.19
0.050655841827393
Output for 5.3.18
0.063009977340698
Output for 5.3.17
0.050398826599121
Output for 5.3.16
0.051318883895874
Output for 5.3.15
0.042121171951294
Output for 5.3.14
0.048265933990479
Output for 5.3.13
0.07513689994812
Output for 5.3.12
0.051941871643066
Output for 5.3.11
0.065568923950195
Output for 5.3.10
0.04998517036438
Output for 5.3.9
0.06010890007019
Output for 5.3.8
0.076230049133301
Output for 5.3.7
0.063703060150146
Output for 5.3.6
0.07594895362854
Output for 5.3.5
0.060356140136719
Output for 5.3.4
0.075373888015747
Output for 5.3.3
0.051085948944092
Output for 5.3.2
0.049925088882446
Output for 5.3.1
0.065052032470703
Output for 5.3.0
0.058377027511597
Output for 5.2.17
0.076607942581177
Output for 5.2.16
0.073702096939087
Output for 5.2.15
0.063323974609375
Output for 5.2.14
0.079471826553345
Output for 5.2.13
0.088581085205078
Output for 5.2.12
0.080348968505859
Output for 5.2.11
0.067466020584106
Output for 5.2.10
0.077739000320435
Output for 5.2.9
0.088097095489502
Output for 5.2.8
0.071185827255249
Output for 5.2.7
0.08831787109375
Output for 5.2.6
0.085330009460449
Output for 5.2.5
0.07721209526062
Output for 5.2.4
0.096617937088013
Output for 5.2.3
0.0938720703125
Output for 5.2.2
0.074958086013794
Output for 5.2.1
0.095860958099365
Output for 5.2.0
0.085910081863403
Output for 5.1.6
0.083066940307617
Output for 5.1.5
0.097136974334717
Output for 5.1.4
0.093242168426514
Output for 5.1.3
0.087498903274536
Output for 5.1.2
0.092940092086792
Output for 5.1.1
0.083478927612305
Output for 5.1.0
0.068511009216309
Output for 5.0.5
0.1883909702301
Output for 5.0.4
0.18815517425537
Output for 5.0.3
0.19116401672363
Output for 5.0.2
0.18866300582886
Output for 5.0.1
0.18404793739319
Output for 5.0.0
0.22546005249023
Output for 4.4.9
0.154096
Output for 4.4.8
0.201049
Output for 4.4.7
0.199153
Output for 4.4.6
0.185805
Output for 4.4.5
0.177447
Output for 4.4.4
0.1889
Output for 4.4.3
0.190827
Output for 4.4.2
0.212395
Output for 4.4.1
0.194918
Output for 4.4.0
0.165926
Output for 4.3.11
0.208002
Output for 4.3.10
0.192933
Output for 4.3.9
0.183309
Output for 4.3.8
0.211951
Output for 4.3.7
0.189644
Output for 4.3.6
0.199395
Output for 4.3.5
0.18559
Output for 4.3.4
0.198806
Output for 4.3.3
0.17
Output for 4.3.2
0.192459
Output for 4.3.1
0.228014
Output for 4.3.0
0.175264