3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); for($i = 0; $i < 10000000; $i++) { $start+=1; $start-=1; } $end = microtime(true); echo 'Total:' . ($start - $end);
Output for 7.1.0
Total:-0.25009512901306
Output for 7.0.14
Total:0.02287483215332
Output for 7.0.6
Total:-0.22801280021667
Output for 7.0.5
Total:-0.21054291725159
Output for 7.0.4
Total:-0.2631721496582
Output for 7.0.3
Total:-0.20607089996338
Output for 7.0.2
Total:-0.22137308120728
Output for 7.0.1
Total:-0.24667811393738
Output for 7.0.0
Total:-0.23230195045471
Output for hhvm-3.12.0
Total:-0.67234802246094
Output for hhvm-3.10.0
Total:-0.83796000480652
Output for 5.6.28
Total:-0.60323905944824
Output for 5.6.21
Total:-0.38039588928223
Output for 5.6.20
Total:-0.38564205169678
Output for 5.6.19
Total:-0.42135310173035
Output for 5.6.18
Total:-0.39854502677917
Output for 5.6.17
Total:-0.39211702346802
Output for 5.6.16
Total:-0.45784616470337
Output for 5.6.15
Total:-0.40963506698608
Output for 5.6.14
Total:-0.39752006530762
Output for 5.6.13
Total:-0.37974405288696
Output for 5.6.12
Total:-0.41348099708557
Output for 5.6.11
Total:-0.41170716285706
Output for 5.6.10
Total:-0.40870714187622
Output for 5.6.9
Total:-0.40520596504211
Output for 5.6.8
Total:-0.45621109008789
Output for 5.5.35
Total:-0.3447368144989
Output for 5.5.34
Total:-0.4117968082428
Output for 5.5.33
Total:-0.42778992652893
Output for 5.5.32
Total:-0.38904500007629
Output for 5.5.31
Total:-0.39984607696533
Output for 5.5.30
Total:-0.40931797027588
Output for 5.5.29
Total:-0.40526413917542
Output for 5.5.28
Total:-0.40679502487183
Output for 5.5.27
Total:-0.40859794616699
Output for 5.5.26
Total:-0.39798521995544
Output for 5.5.25
Total:-0.4085419178009
Output for 5.5.24
Total:-0.4274640083313
Output for 5.4.45
Total:-0.36473798751831
Output for 5.4.44
Total:-0.38284087181091
Output for 5.4.43
Total:-0.44783306121826
Output for 5.4.42
Total:-0.42223978042603
Output for 5.4.41
Total:-0.40242600440979
Output for 5.4.40
Total:-0.37672400474548
Output for 5.4.39
Total:-0.36014485359192
Output for 5.4.38
Total:-0.4407651424408
Output for 5.4.37
Total:-0.39541697502136
Output for 5.4.36
Total:-0.38940787315369
Output for 5.4.35
Total:-0.36491417884827
Output for 5.4.34
Total:-0.37203598022461
Output for 5.4.32
Total:-0.36493992805481
Output for 5.4.31
Total:-0.42632794380188
Output for 5.4.30
Total:-0.38241195678711
Output for 5.4.29
Total:-0.66915607452393
Output for 5.4.28
Total:-0.70678782463074
Output for 5.4.27
Total:-0.90852618217468
Output for 5.4.26
Total:-0.75148296356201
Output for 5.4.25
Total:-0.69768500328064
Output for 5.4.24
Total:-0.79232096672058
Output for 5.4.23
Total:-0.85232305526733
Output for 5.4.22
Total:-0.69307112693787
Output for 5.4.21
Total:-0.57844209671021
Output for 5.4.20
Total:-0.57974791526794
Output for 5.4.19
Total:-0.53915500640869
Output for 5.4.18
Total:-0.59360599517822
Output for 5.4.17
Total:-0.55143022537231
Output for 5.4.16
Total:-0.49388480186462
Output for 5.4.15
Total:-0.55527305603027
Output for 5.4.14
Total:-0.47273087501526
Output for 5.4.13
Total:-0.50909090042114
Output for 5.4.12
Total:-0.5200297832489
Output for 5.4.11
Total:-0.71670794487
Output for 5.4.10
Total:-0.58274793624878
Output for 5.4.9
Total:-0.51881909370422
Output for 5.4.8
Total:-0.74422001838684
Output for 5.4.7
Total:-0.62660908699036
Output for 5.4.6
Total:-0.61338090896606
Output for 5.4.5
Total:-0.64516496658325
Output for 5.4.4
Total:-0.77387809753418
Output for 5.4.3
Total:-0.62503504753113
Output for 5.4.2
Total:-0.71136808395386
Output for 5.4.1
Total:-0.45134902000427
Output for 5.4.0
Total:-0.60563778877258
Output for 5.3.29
Total:-0.43711495399475
Output for 5.3.28
Total:-0.75091195106506
Output for 5.3.27
Total:-0.78538203239441
Output for 5.3.26
Total:-0.89214205741882
Output for 5.3.25
Total:-0.67012596130371
Output for 5.3.24
Total:-0.58177399635315
Output for 5.3.23
Total:-0.7638258934021
Output for 5.3.22
Total:-0.95045614242554
Output for 5.3.21
Total:-0.76437282562256
Output for 5.3.20
Total:-0.74462008476257
Output for 5.3.19
Total:-0.88719391822815
Output for 5.3.18
Total:-0.91234707832336
Output for 5.3.17
Total:-0.92296099662781
Output for 5.3.16
Total:-0.82441687583923
Output for 5.3.15
Total:-0.77904510498047
Output for 5.3.14
Total:-0.58797597885132
Output for 5.3.13
Total:-0.67579317092896
Output for 5.3.12
Total:-0.58148097991943
Output for 5.3.11
Total:-0.73030090332031
Output for 5.3.10
Total:-0.76841688156128
Output for 5.3.9
Total:-0.77041506767273
Output for 5.3.8
Total:-0.63838791847229
Output for 5.3.7
Total:-0.60144209861755
Output for 5.3.6
Total:-0.7057421207428
Output for 5.3.5
Total:-0.88940906524658
Output for 5.3.4
Total:-0.74379277229309
Output for 5.3.3
Total:-0.90139007568359
Output for 5.3.2
Total:-0.70356202125549
Output for 5.3.1
Total:-0.62624478340149
Output for 5.3.0
Total:-0.80986094474792
Output for 5.2.17
Total:-1.3652610778809
Output for 5.2.16
Total:-1.2029979228973
Output for 5.2.15
Total:-1.2832429409027
Output for 5.2.14
Total:-1.544025182724
Output for 5.2.13
Total:-1.5811550617218
Output for 5.2.12
Total:-1.5211749076843
Output for 5.2.11
Total:-1.3057861328125
Output for 5.2.10
Total:-1.3356020450592
Output for 5.2.9
Total:-1.2773780822754
Output for 5.2.8
Total:-1.4443981647491
Output for 5.2.7
Total:-1.4837710857391
Output for 5.2.6
Total:-1.1746258735657
Output for 5.2.5
Total:-1.2076268196106
Output for 5.2.4
Total:-1.4093849658966
Output for 5.2.3
Total:-1.4159960746765
Output for 5.2.2
Total:-0.98453688621521
Output for 5.2.1
Total:-0.99736404418945
Output for 5.2.0
Total:-1.0700528621674
Output for 5.1.6
Total:-1.4680128097534
Output for 5.1.5
Total:-1.581995010376
Output for 5.1.4
Total:-1.7472538948059
Output for 5.1.3
Total:-1.7234060764313
Output for 5.1.2
Total:-1.3980090618134
Output for 5.1.1
Total:-1.17009806633
Output for 5.1.0
Total:-1.3836078643799
Output for 5.0.4 - 5.0.5

Process exited with code 137.
Output for 5.0.3
Total:-2.2541251182556
Output for 5.0.2
Total:-1.9922590255737
Output for 5.0.1
Total:-1.5872509479523
Output for 5.0.0
Total:-1.6475150585175
Output for 4.4.9
Total:0.554609
Output for 4.4.8
Total:0.50852
Output for 4.4.7
Total:-0.426852
Output for 4.4.6
Total:0.515742
Output for 4.4.5
Total:0.53127
Output for 4.4.4
Total:0.378845
Output for 4.4.3
Total:-0.784426
Output for 4.4.2
Total:0.249396
Output for 4.4.1
Total:-0.468554
Output for 4.4.0
Total:0.441979
Output for 4.3.11
Total:-0.475937
Output for 4.3.10
Total:-0.388356
Output for 4.3.9
Total:0.525939
Output for 4.3.8
Total:0.266017
Output for 4.3.7
Total:-0.728667
Output for 4.3.6
Total:0.488673
Output for 4.3.5
Total:0.320667
Output for 4.3.4
Total:-0.390152
Output for 4.3.3
Total:0.481966
Output for 4.3.2
Total:0.575047
Output for 4.3.1
Total:-0.406079
Output for 4.3.0
Total:-0.619796