3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); $n = 100000; $v = 12345; while($n--) { if ($v === (int) $v && $v > 0) { } } echo (microtime(true) - $t);
Output for 7.1.0
0.0048401355743408
Output for 7.0.14
0.0046608448028564
Output for 7.0.10
0.0026941299438477
Output for 7.0.9
0.0028688907623291
Output for 7.0.8
0.0029768943786621
Output for 7.0.7
0.0026988983154297
Output for 7.0.6
0.0027170181274414
Output for 7.0.5
0.0036540031433105
Output for 7.0.4
0.0041930675506592
Output for 7.0.3
0.0034911632537842
Output for 7.0.2
0.0032200813293457
Output for 7.0.1
0.0039639472961426
Output for 7.0.0
0.003648042678833
Output for 5.6.28
0.0083820819854736
Output for 5.6.25
0.0043270587921143
Output for 5.6.24
0.0044748783111572
Output for 5.6.23
0.0042989253997803
Output for 5.6.22
0.0052008628845215
Output for 5.6.21
0.0043659210205078
Output for 5.6.20
0.0062999725341797
Output for 5.6.19
0.0072488784790039
Output for 5.6.18
0.0065720081329346
Output for 5.6.17
0.0072870254516602
Output for 5.6.16
0.0051708221435547
Output for 5.6.15
0.0060079097747803
Output for 5.6.14
0.0062930583953857
Output for 5.6.13
0.0064918994903564
Output for 5.6.12
0.0053119659423828
Output for 5.6.11
0.004356861114502
Output for 5.6.10
0.0054409503936768
Output for 5.6.9
0.0046911239624023
Output for 5.6.8
0.0075619220733643
Output for 5.6.7
0.0073339939117432
Output for 5.6.6
0.0063118934631348
Output for 5.6.5
0.0045120716094971
Output for 5.6.4
0.0072281360626221
Output for 5.6.3
0.0066170692443848
Output for 5.6.2
0.0052130222320557
Output for 5.6.1
0.007220983505249
Output for 5.6.0
0.007565975189209
Output for 5.5.38
0.0053279399871826
Output for 5.5.37
0.0052540302276611
Output for 5.5.36
0.0042691230773926
Output for 5.5.35
0.004500150680542
Output for 5.5.34
0.0064828395843506
Output for 5.5.33
0.0066759586334229
Output for 5.5.32
0.0073318481445312
Output for 5.5.31
0.0095920562744141
Output for 5.5.30
0.0058598518371582
Output for 5.5.29
0.0071399211883545
Output for 5.5.28
0.0062398910522461
Output for 5.5.27
0.007349967956543
Output for 5.5.26
0.0066661834716797
Output for 5.5.25
0.0045719146728516
Output for 5.5.24
0.0072159767150879
Output for 5.5.23
0.0075271129608154
Output for 5.5.22
0.0063619613647461
Output for 5.5.21
0.0070610046386719
Output for 5.5.20
0.007742166519165
Output for 5.5.19
0.0069949626922607
Output for 5.5.18
0.0060989856719971
Output for 5.5.16
0.007253885269165
Output for 5.5.15
0.0071110725402832
Output for 5.5.14
0.0063760280609131
Output for 5.5.13
0.0064711570739746
Output for 5.5.12
0.0068318843841553
Output for 5.5.11
0.0054049491882324
Output for 5.5.10
0.0066680908203125
Output for 5.5.9
0.0063850879669189
Output for 5.5.8
0.0068831443786621
Output for 5.5.7
0.0043809413909912
Output for 5.5.6
0.0091290473937988
Output for 5.5.5
0.0095779895782471
Output for 5.5.4
0.0066230297088623
Output for 5.5.3
0.0059640407562256
Output for 5.5.2
0.0079731941223145
Output for 5.5.1
0.0051500797271729
Output for 5.5.0
0.0063319206237793
Output for 5.4.45
0.0044260025024414
Output for 5.4.44
0.0067660808563232
Output for 5.4.43
0.0064001083374023
Output for 5.4.42
0.0070080757141113
Output for 5.4.41
0.0060391426086426
Output for 5.4.40
0.0066778659820557
Output for 5.4.39
0.0064480304718018
Output for 5.4.38
0.0064020156860352
Output for 5.4.37
0.0063450336456299
Output for 5.4.36
0.006101131439209
Output for 5.4.35
0.0060651302337646
Output for 5.3.17, 5.4.34
0.0062839984893799
Output for 5.4.32
0.0058939456939697
Output for 5.4.31
0.007857084274292
Output for 5.4.30
0.0070300102233887
Output for 5.4.29
0.0061819553375244
Output for 5.4.28
0.0069880485534668
Output for 5.4.27
0.0062110424041748
Output for 5.4.26
0.007133960723877
Output for 5.4.25
0.006040096282959
Output for 5.4.24
0.0063538551330566
Output for 5.4.23
0.0068120956420898
Output for 5.4.22
0.005681037902832
Output for 5.4.21
0.0071418285369873
Output for 5.4.20
0.0060358047485352
Output for 5.4.19
0.0073449611663818
Output for 5.4.18
0.0072951316833496
Output for 5.4.17
0.0072901248931885
Output for 5.4.16
0.007174015045166
Output for 5.4.15
0.0076830387115479
Output for 5.4.14
0.0070259571075439
Output for 5.4.13
0.0066909790039062
Output for 5.4.12
0.0058009624481201
Output for 5.4.11
0.004317045211792
Output for 5.4.10
0.0069229602813721
Output for 5.4.9
0.0050849914550781
Output for 5.4.8
0.0077199935913086
Output for 5.4.7
0.0051579475402832
Output for 5.4.6
0.0070641040802002
Output for 5.4.5
0.0072457790374756
Output for 5.4.4
0.0066609382629395
Output for 5.4.3
0.0073740482330322
Output for 5.4.2
0.0068821907043457
Output for 5.4.1
0.0068118572235107
Output for 5.4.0
0.0050191879272461
Output for 5.3.29
0.0067009925842285
Output for 5.3.28
0.0077400207519531
Output for 5.3.27
0.0093250274658203
Output for 5.3.26
0.0061900615692139
Output for 5.3.25
0.0085809230804443
Output for 5.3.24
0.006105899810791
Output for 5.3.23
0.0053730010986328
Output for 5.3.22
0.0050749778747559
Output for 5.3.21
0.0069670677185059
Output for 5.3.20
0.0051159858703613
Output for 5.3.19
0.0070309638977051
Output for 5.3.18
0.0069890022277832
Output for 5.3.16
0.008397102355957
Output for 5.3.15
0.0087890625
Output for 5.3.14
0.0076320171356201
Output for 5.3.13
0.0078499317169189
Output for 5.3.12
0.0052559375762939
Output for 5.3.11
0.008213996887207
Output for 5.3.10
0.0049610137939453
Output for 5.3.9
0.006633996963501
Output for 5.3.8
0.0062668323516846
Output for 5.3.7
0.0085830688476562
Output for 5.3.6
0.0080788135528564
Output for 5.3.5
0.0061149597167969
Output for 5.3.4
0.0082800388336182
Output for 5.3.3
0.008281946182251
Output for 5.3.2
0.0077610015869141
Output for 5.3.1
0.005964994430542
Output for 5.3.0
0.0097908973693848
Output for 5.2.17
0.01124906539917
Output for 5.2.16
0.011419057846069
Output for 5.2.15
0.010884046554565
Output for 5.2.14
0.011571168899536
Output for 5.2.13
0.0062229633331299
Output for 5.2.12
0.010609865188599
Output for 5.2.11
0.0077769756317139
Output for 5.2.10
0.0060551166534424
Output for 5.2.9
0.0070679187774658
Output for 5.2.8
0.011524200439453
Output for 5.2.7
0.010733127593994
Output for 5.2.6
0.011664867401123
Output for 5.2.5
0.0063190460205078
Output for 5.2.4
0.0077731609344482
Output for 5.2.3
0.0070579051971436
Output for 5.2.2
0.008648157119751
Output for 5.2.1
0.0074901580810547
Output for 5.2.0
0.0066328048706055
Output for 5.1.6
0.011969089508057
Output for 5.1.5
0.0089800357818604
Output for 5.1.4
0.010804176330566
Output for 5.1.3
0.010761022567749
Output for 5.1.2
0.0081069469451904
Output for 5.1.1
0.010540008544922
Output for 5.1.0
0.0091121196746826
Output for 5.0.5
0.021072149276733
Output for 5.0.4
0.028136014938354
Output for 5.0.3
0.031597137451172
Output for 5.0.2
0.029798984527588
Output for 5.0.1
0.032556056976318
Output for 5.0.0
0.024024963378906
Output for 4.4.9
0.026174
Output for 4.4.8
0.031468
Output for 4.4.7
0.015741
Output for 4.4.6
0.0302
Output for 4.4.5
0.024316
Output for 4.4.4
0.029921
Output for 4.4.3
0.019834
Output for 4.4.2
0.03099
Output for 4.4.1
0.021217
Output for 4.4.0
0.029942
Output for 4.3.11
0.032224
Output for 4.3.10
0.019476
Output for 4.3.9
0.026357
Output for 4.3.8
0.029338
Output for 4.3.7
0.030225
Output for 4.3.6
0.03037
Output for 4.3.5
0.024166
Output for 4.3.4
0.028623
Output for 4.3.3
0.026026
Output for 4.3.2
0.020583
Output for 4.3.1
0.021399
Output for 4.3.0
0.029569