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;
Output for 7.1.0
0.32088804244995
Output for 7.0.14
0.3879930973053
Output for 7.0.10
0.29951000213623
Output for 7.0.9
0.24900197982788
Output for 7.0.8
0.28309297561646
Output for 7.0.7
0.27585601806641
Output for 7.0.6
0.28447508811951
Output for 7.0.5
0.27455615997314
Output for 7.0.4
0.29366016387939
Output for 7.0.3
0.26554608345032
Output for 7.0.2
0.27484107017517
Output for 7.0.1
0.27917695045471
Output for 7.0.0
0.28687596321106
Output for hhvm-3.12.0
1.5283482074738
Output for hhvm-3.10.0
1.9319040775299
Output for 5.6.28
0.65895414352417
Output for 5.6.25
0.51629400253296
Output for 5.6.24
0.52267694473267
Output for 5.6.23
0.5373649597168
Output for 5.6.22
0.5218391418457
Output for 5.6.21
0.52883291244507
Output for 5.6.20
0.52100110054016
Output for 5.6.19
0.60597586631775
Output for 5.6.18
0.52606797218323
Output for 5.6.17
0.50416398048401
Output for 5.6.16
0.52804803848267
Output for 5.6.15
0.46187496185303
Output for 5.6.14
0.52508997917175
Output for 5.6.13
0.48123002052307
Output for 5.6.12
0.50121283531189
Output for 5.6.11
0.49191999435425
Output for 5.6.10
0.51652693748474
Output for 5.6.9
0.58038806915283
Output for 5.6.8
0.51635789871216
Output for 5.6.7
0.56899094581604
Output for 5.6.6
0.56735396385193
Output for 5.6.5
0.53210687637329
Output for 5.6.4
0.54952692985535
Output for 5.6.3
0.62752199172974
Output for 5.6.2
0.50821805000305
Output for 5.6.1
0.53412318229675
Output for 5.6.0
0.51992297172546
Output for 5.5.38
0.47614288330078
Output for 5.5.37
0.47571921348572
Output for 5.5.36
0.47923016548157
Output for 5.5.35
0.50552487373352
Output for 5.5.34
0.55295205116272
Output for 5.5.33
0.61445093154907
Output for 5.5.32
0.54952812194824
Output for 5.5.31
0.50384116172791
Output for 5.5.30
0.5155029296875
Output for 5.5.29
0.46905207633972
Output for 5.5.28
0.53068590164185
Output for 5.5.27
0.4536919593811
Output for 5.5.26
0.41169810295105
Output for 5.5.25
0.52575206756592
Output for 5.5.24
0.52214097976685
Output for 5.5.23
0.48736190795898
Output for 5.5.22
0.49942898750305
Output for 5.5.21
0.52639102935791
Output for 5.5.20
0.49449586868286
Output for 5.5.19
0.51226186752319
Output for 5.5.18
0.51164603233337
Output for 5.5.16
0.51002287864685
Output for 5.5.15
0.53701114654541
Output for 5.5.14
0.51299810409546
Output for 5.5.13
0.53473901748657
Output for 5.5.12
0.54493999481201
Output for 5.5.11
0.50997185707092
Output for 5.5.10
0.49511098861694
Output for 5.5.9
0.46733617782593
Output for 5.5.8
0.44719219207764
Output for 5.5.7
0.45136094093323
Output for 5.5.6
0.52376484870911
Output for 5.5.5
0.55946683883667
Output for 5.5.4
0.49857187271118
Output for 5.5.3
0.54473900794983
Output for 5.5.2
0.5162570476532
Output for 5.5.1
0.50134992599487
Output for 5.5.0
0.56054186820984
Output for 5.4.45
0.41857504844666
Output for 5.4.44
0.43564414978027
Output for 5.4.43
0.46311092376709
Output for 5.4.42
0.48913407325745
Output for 5.4.41
0.5162410736084
Output for 5.4.40
0.52479410171509
Output for 5.4.39
0.50623297691345
Output for 5.4.38
0.48445701599121
Output for 5.4.37
0.48307013511658
Output for 5.4.36
0.49902582168579
Output for 5.4.35
0.4758939743042
Output for 5.4.34
0.48988604545593
Output for 5.4.32
0.49772691726685
Output for 5.4.31
0.5000147819519
Output for 5.4.30
0.50636291503906
Output for 5.4.29
0.57267212867737
Output for 5.4.28
0.5168731212616
Output for 5.4.27
0.51495599746704
Output for 5.4.26
0.47719311714172
Output for 5.4.25
0.48984694480896
Output for 5.4.24
0.49430108070374
Output for 5.4.23
0.49503993988037
Output for 5.4.22
0.50034594535828
Output for 5.4.21
0.50490283966064
Output for 5.4.20
0.51084899902344
Output for 5.4.19
0.47452592849731
Output for 5.4.18
0.49605107307434
Output for 5.4.17
0.52043604850769
Output for 5.4.16
0.51032400131226
Output for 5.4.15
0.51951813697815
Output for 5.4.14
0.63597583770752
Output for 5.4.13
0.52522015571594
Output for 5.4.12
0.50370192527771
Output for 5.4.11
0.50016522407532
Output for 5.4.10
0.39083886146545
Output for 5.4.9
0.42502021789551
Output for 5.4.8
0.40138816833496
Output for 5.4.7
0.48938393592834
Output for 5.4.6
0.4296190738678
Output for 5.4.5
0.50891494750977
Output for 5.4.4
0.49622201919556
Output for 5.4.3
0.51735806465149
Output for 5.4.2
0.50431799888611
Output for 5.4.1
0.44142603874207
Output for 5.4.0
0.5217559337616
Output for 5.3.29
0.71868705749512
Output for 5.3.28
0.8924880027771
Output for 5.3.27
0.84171390533447
Output for 5.3.26
0.87460613250732
Output for 5.3.25
0.88919281959534
Output for 5.3.24
0.94669389724731
Output for 5.3.23
0.84214901924133
Output for 5.3.22
0.89594101905823
Output for 5.3.21
0.88265299797058
Output for 5.3.20
0.77925610542297
Output for 5.3.19
0.89813303947449
Output for 5.3.18
0.76290202140808
Output for 5.3.17
0.85116815567017
Output for 5.3.16
0.80555605888367
Output for 5.3.15
0.92968916893005
Output for 5.3.14
0.91493701934814
Output for 5.3.13
0.86032700538635
Output for 5.3.12
0.87297916412354
Output for 5.3.11
0.8984489440918
Output for 5.3.10
0.96484899520874
Output for 5.3.9
0.91206407546997
Output for 5.3.8
0.88331294059753
Output for 5.3.7
0.90409302711487
Output for 5.3.6
0.87840795516968
Output for 5.3.5
0.87563490867615
Output for 5.3.4
0.86920690536499
Output for 5.3.3
0.87205386161804
Output for 5.3.2
0.73640084266663
Output for 5.3.1
0.87217092514038
Output for 5.3.0
0.91875100135803
Output for 5.2.17
1.1541018486023
Output for 5.2.16
1.0509941577911
Output for 5.2.15
1.2276251316071
Output for 5.2.14
1.1898829936981
Output for 5.2.13
1.0433759689331
Output for 5.2.12
1.2248899936676
Output for 5.2.11
1.1933989524841
Output for 5.2.10
1.1947519779205
Output for 5.2.9
1.2297420501709
Output for 5.2.8
1.0982909202576
Output for 5.2.7
1.2191808223724
Output for 5.2.6
1.1811900138855
Output for 5.2.5
1.1718208789825
Output for 5.2.4
1.1564590930939
Output for 5.2.3
1.1824231147766
Output for 5.2.2
1.2111780643463
Output for 5.2.1
1.0463850498199
Output for 5.2.0
1.086884021759
Output for 5.1.6
1.0078599452972
Output for 5.1.5
1.0720670223236
Output for 5.1.4
1.0908761024475
Output for 5.1.3
1.1264798641205
Output for 5.1.2
1.1485750675201
Output for 5.1.1
1.0636620521545
Output for 5.1.0
1.1886830329895
Output for 5.0.5
1.9936709403992
Output for 5.0.4
2.1051769256592
Output for 5.0.3
1.9334139823914
Output for 5.0.2
1.9147250652313
Output for 5.0.1
1.7988398075104
Output for 5.0.0
2.2032141685486
Output for 4.4.9
0.070285
Output for 4.4.8
0.910034
Output for 4.4.7
0.903722
Output for 4.4.6
0.877392
Output for 4.4.5
0.967168
Output for 4.4.4
0.244341
Output for 4.4.3
0.815084
Output for 4.4.2
0.874755
Output for 4.4.1
0.94689
Output for 4.4.0
0.931979
Output for 4.3.11
0.85889
Output for 4.3.10
0.834201
Output for 4.3.9
0.906252
Output for 4.3.8
0.115997
Output for 4.3.7
0.016563
Output for 4.3.6
0.964966
Output for 4.3.5
0.146189
Output for 4.3.4
0.909259
Output for 4.3.3
0.911717
Output for 4.3.2
0.91091
Output for 4.3.1
0.862678
Output for 4.3.0
0.037125