3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function absolute(&$n){ return ((($n >> 31) ^ $n) - ($n >> 31)); } $start = microtime(true); for($i = 0; $i <= 5000000; $i++){ absolute($y); } $end = microtime(true); echo $end - $start;

Abusive script

This script was stopped while abusing our resources

Output for 7.1.0
0.52755999565125
Output for 7.0.14
0.53387594223022
Output for 7.0.13
0.54556798934937
Output for 7.0.12
0.51327204704285
Output for 7.0.11
0.52111196517944
Output for 7.0.10
0.60172414779663
Output for 7.0.9
0.50845503807068
Output for 7.0.8
0.61149597167969
Output for 7.0.7
0.55823493003845
Output for 7.0.6
0.53782296180725
Output for 7.0.5
0.62810802459717
Output for 7.0.4
0.52213191986084
Output for 7.0.3
0.50665092468262
Output for 7.0.2
0.71332597732544
Output for 7.0.1
0.51580214500427
Output for 7.0.0
0.51494407653809
Output for hhvm-3.13.2
1.3130559921265
Output for hhvm-3.12.0
1.3439111709595
Output for hhvm-3.10.0
1.6051490306854
Output for 5.6.29
0.91875886917114
Output for 5.6.28
1.0087621212006
Output for 5.6.27
0.92499208450317
Output for 5.6.26
1.0030388832092
Output for 5.6.25
1.0199530124664
Output for 5.6.24
1.0187480449677
Output for 5.6.23
0.84834599494934
Output for 5.6.22
1.083606004715
Output for 5.6.21
0.91057705879211
Output for 5.6.20
0.82270383834839
Output for 5.6.19
0.95244097709656
Output for 5.6.18
0.83597898483276
Output for 5.6.17
0.88823795318604
Output for 5.6.16
0.82590913772583
Output for 5.6.15
0.87610292434692
Output for 5.6.14
0.84992504119873
Output for 5.6.13
0.84344100952148
Output for 5.6.12
0.95618104934692
Output for 5.6.11
1.0399758815765
Output for 5.6.10
1.1021227836609
Output for 5.6.9
1.4766390323639
Output for 5.6.8
1.3450100421906
Output for 4.3.0 - 5.0.5, 5.6.7

Process exited with code 137.
Output for 5.6.6
1.3941659927368
Output for 5.6.5
1.3456900119781
Output for 5.6.4
1.0872368812561
Output for 5.6.3
0.88608384132385
Output for 5.6.2
0.83006906509399
Output for 5.6.1
0.8961501121521
Output for 5.6.0
1.017187833786
Output for 5.5.38
0.86772918701172
Output for 5.5.37
0.98048996925354
Output for 5.5.36
0.82528281211853
Output for 5.5.35
0.97834205627441
Output for 5.5.34
0.94275712966919
Output for 5.5.33
0.97127389907837
Output for 5.5.32
0.85359716415405
Output for 5.5.31
1.0579459667206
Output for 5.5.30
0.923672914505
Output for 5.5.29
0.96899700164795
Output for 5.5.28
0.8597137928009
Output for 5.5.27
1.0256769657135
Output for 5.5.26
1.1940920352936
Output for 5.5.25
1.2374501228333
Output for 5.5.24
0.97581100463867
Output for 5.5.23
2.0831060409546
Output for 5.5.22
1.2540431022644
Output for 5.5.21
1.3012640476227
Output for 5.5.20
1.3225400447845
Output for 5.5.19
0.8921070098877
Output for 5.5.18
0.89369201660156
Output for 5.5.16
0.8884060382843
Output for 5.5.15
0.96044993400574
Output for 5.5.14
1.0071799755096
Output for 5.5.13
0.86256885528564
Output for 5.5.12
0.82984900474548
Output for 5.5.11
0.83103680610657
Output for 5.5.10
0.82946801185608
Output for 5.5.9
0.83028483390808
Output for 5.5.8
0.85406279563904
Output for 5.5.7
0.88303208351135
Output for 5.5.6
0.81069898605347
Output for 5.5.5
0.8039219379425
Output for 5.5.4
0.96588683128357
Output for 5.5.3
0.8398060798645
Output for 5.5.2
0.8836190700531
Output for 5.5.1
0.81856894493103
Output for 5.5.0
0.88379001617432
Output for 5.4.45
0.92545986175537
Output for 5.4.44
1.1111850738525
Output for 5.4.43
0.86630702018738
Output for 5.4.42
1.4721510410309
Output for 5.4.41
1.5391280651093
Output for 5.4.40
1.3251709938049
Output for 5.4.39
1.8448398113251
Output for 5.4.38
1.2160930633545
Output for 5.4.37
1.4187049865723
Output for 5.4.36
1.48948097229
Output for 5.4.35
0.91674399375916
Output for 5.4.34
0.90249300003052
Output for 5.4.32
0.86379599571228
Output for 5.4.31
0.89495182037354
Output for 5.4.30
0.83802485466003
Output for 5.4.29
0.83763313293457
Output for 5.4.28
0.86093020439148
Output for 5.4.27
0.84372496604919
Output for 5.4.26
0.83547401428223
Output for 5.4.25
0.9971718788147
Output for 5.4.24
0.81819105148315
Output for 5.4.23
0.79860687255859
Output for 5.4.22
0.8067741394043
Output for 5.4.21
0.83519911766052
Output for 5.4.20
0.80458116531372
Output for 5.4.19
0.92986798286438
Output for 5.4.18
0.840008020401
Output for 5.4.17
0.9272928237915
Output for 5.4.16
0.83814287185669
Output for 5.4.15
0.85136079788208
Output for 5.4.14
0.90010690689087
Output for 5.4.13
0.98419189453125
Output for 5.4.12
0.95248699188232
Output for 5.4.11
0.83963394165039
Output for 5.4.10
0.95619487762451
Output for 5.4.9
0.96227192878723
Output for 5.4.8
0.84754490852356
Output for 5.4.7
0.85508704185486
Output for 5.4.6
0.86706018447876
Output for 5.4.5
0.8138599395752
Output for 5.4.4
0.81879091262817
Output for 5.4.3
0.84612488746643
Output for 5.4.2
1.1307179927826
Output for 5.4.1
0.8793420791626
Output for 5.4.0
0.85915684700012
Output for 5.3.29
1.2311561107635
Output for 5.3.28
1.1232879161835
Output for 5.3.27
1.0965619087219
Output for 5.3.26
1.0937128067017
Output for 5.3.25
0.99196410179138
Output for 5.3.24
0.97617387771606
Output for 5.3.23
1.0396120548248
Output for 5.3.22
1.0120050907135
Output for 5.3.21
1.0588800907135
Output for 5.3.20
1.0062110424042
Output for 5.3.19
1.0045969486237
Output for 5.3.18
1.0140089988708
Output for 5.3.17
1.0236639976501
Output for 5.3.16
1.2604191303253
Output for 5.3.15
1.0273630619049
Output for 5.3.14
1.0759179592133
Output for 5.3.13
1.1797318458557
Output for 5.3.12
1.2106521129608
Output for 5.3.11
1.1626758575439
Output for 5.3.10
0.99773192405701
Output for 5.3.9
1.2641468048096
Output for 5.3.8
1.0877048969269
Output for 5.3.7
1.0410990715027
Output for 5.3.6
0.99023795127869
Output for 5.3.5
1.2166998386383
Output for 5.3.4
1.0284361839294
Output for 5.3.3
1.0509321689606
Output for 5.3.2
1.1689469814301
Output for 5.3.1
1.1795198917389
Output for 5.3.0
1.0149421691895
Output for 5.2.17
1.6649959087372
Output for 5.2.16
1.5246620178223
Output for 5.2.15
1.5098679065704
Output for 5.2.14
1.6656110286713
Output for 5.2.13
1.8057990074158
Output for 5.2.12
1.6238090991974
Output for 5.2.11
1.5900387763977
Output for 5.2.10
1.5350968837738
Output for 5.2.9
1.7231428623199
Output for 5.2.8
1.5717561244965
Output for 5.2.7
1.539256811142
Output for 5.2.6
1.522262096405
Output for 5.2.5
1.6349229812622
Output for 5.2.4
1.5218961238861
Output for 5.2.3
1.5472588539124
Output for 5.2.2
1.5337398052216
Output for 5.2.1
1.6563451290131
Output for 5.2.0
2.2047410011292
Output for 5.1.6
1.6280539035797
Output for 5.1.5
1.7000119686127
Output for 5.1.4
1.5016717910767
Output for 5.1.3
1.6361429691315
Output for 5.1.2
1.5170629024506
Output for 5.1.1
1.5243430137634
Output for 5.1.0
1.980190038681