3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test1() { $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a / 2; } return microtime(true) - $s; } function test2() { $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a >> 1; } return microtime(true) - $s; } echo test1()."\n"; echo test2()."\n";
Output for 7.1.0
0.053292989730835 0.018233060836792
Output for 7.0.14
0.067451000213623 0.018624067306519
Output for 7.0.6
0.04793906211853 0.018161058425903
Output for 7.0.5
0.039864063262939 0.016206979751587
Output for 7.0.4
0.044031143188477 0.016751050949097
Output for 7.0.3
0.041700839996338 0.016098976135254
Output for 7.0.2
0.036734819412231 0.016506910324097
Output for 7.0.1
0.04508113861084 0.01797080039978
Output for 7.0.0
0.033418893814087 0.014561891555786
Output for 5.6.28
0.10930204391479 0.025562047958374
Output for 5.6.21
0.06366491317749 0.033646106719971
Output for 5.6.20
0.053421974182129 0.030769109725952
Output for 5.6.19
0.049364805221558 0.033030033111572
Output for 5.6.18
0.075340986251831 0.037832021713257
Output for 5.6.17
0.060133934020996 0.031759023666382
Output for 5.6.16
0.05074405670166 0.03072190284729
Output for 5.6.15
0.065995216369629 0.035171985626221
Output for 5.6.14
0.067095994949341 0.035501003265381
Output for 5.6.13
0.064523935317993 0.034400939941406
Output for 5.6.12
0.060544967651367 0.032707929611206
Output for 5.6.11
0.049082040786743 0.030972003936768
Output for 5.6.10
0.055341005325317 0.031765937805176
Output for 5.6.9
0.047709941864014 0.029894113540649
Output for 5.6.8
0.064908981323242 0.034313917160034
Output for 5.6.7
0.050127983093262 0.031605958938599
Output for 5.5.35
0.04091215133667 0.025357961654663
Output for 5.5.34
0.058101892471313 0.030877113342285
Output for 5.5.33
0.067232131958008 0.031074047088623
Output for 5.5.32
0.082514047622681 0.056106805801392
Output for 5.5.31
0.063894987106323 0.033369064331055
Output for 5.5.30
0.049876928329468 0.030796051025391
Output for 5.5.29
0.049746990203857 0.03071403503418
Output for 5.5.28
0.076109886169434 0.031077861785889
Output for 5.5.27
0.080384969711304 0.038209915161133
Output for 5.5.26
0.066922903060913 0.034663915634155
Output for 5.5.25
0.05944299697876 0.037073135375977
Output for 5.5.24
0.064043045043945 0.034039974212646
Output for 5.4.45
0.074713945388794 0.043957948684692
Output for 5.4.44
0.073635101318359 0.045466899871826
Output for 5.4.43
0.068542003631592 0.045073986053467
Output for 5.4.42
0.066854953765869 0.04408597946167
Output for 5.4.41
0.07283091545105 0.05549693107605
Output for 5.4.40
0.068044900894165 0.049115896224976
Output for 5.4.39
0.06876802444458 0.045656204223633
Output for 5.4.38
0.13678812980652 0.093273878097534
Output for 5.4.37
0.066179037094116 0.043120145797729
Output for 5.4.36
0.0678551197052 0.043244123458862
Output for 5.4.35
0.06871509552002 0.064934015274048
Output for 5.4.34
0.12789607048035 0.10147905349731
Output for 5.4.32
0.049844026565552 0.03314208984375
Output for 5.4.31
0.050458192825317 0.033248901367188
Output for 5.4.30
0.051071166992188 0.033514022827148
Output for 5.4.29
0.050863027572632 0.033031940460205
Output for 5.4.28
0.056416034698486 0.032825946807861
Output for 5.4.27
0.060136079788208 0.048124074935913
Output for 5.4.26
0.050846099853516 0.033159971237183
Output for 5.4.25
0.062533140182495 0.052196025848389
Output for 5.4.24
0.054410934448242 0.034406900405884
Output for 5.4.23
0.06226110458374 0.052703857421875
Output for 5.4.22
0.067864894866943 0.040002822875977
Output for 5.4.21
0.054690837860107 0.035094022750854
Output for 5.4.20
0.06116509437561 0.033421993255615
Output for 5.4.19
0.088566780090332 0.042232036590576
Output for 5.4.18
0.051417112350464 0.034746885299683
Output for 5.4.17
0.05019998550415 0.034682035446167
Output for 5.4.16
0.054019927978516 0.033100128173828
Output for 5.4.15
0.051110029220581 0.033696889877319
Output for 5.4.14
0.068032026290894 0.032424926757812
Output for 5.4.13
0.089717864990234 0.037147998809814
Output for 5.4.12
0.069204092025757 0.038156986236572
Output for 5.4.11
0.10495090484619 0.075029850006104
Output for 5.4.10
0.050870895385742 0.033498048782349
Output for 5.4.9
0.05310583114624 0.033567905426025
Output for 5.4.8
0.052698135375977 0.034152030944824
Output for 5.4.7
0.055614948272705 0.04521107673645
Output for 5.4.6
0.060182094573975 0.033930063247681
Output for 5.4.5
0.065829038619995 0.039889097213745
Output for 5.4.4
0.05279803276062 0.035278081893921
Output for 5.4.3
0.059087038040161 0.037070989608765
Output for 5.4.2
0.056145906448364 0.037783145904541
Output for 5.4.1
0.055506944656372 0.037790060043335
Output for 5.4.0
0.051512002944946 0.03470516204834
Output for 5.3.29
0.077386140823364 0.058851957321167
Output for 5.3.28
0.066817045211792 0.046475887298584
Output for 5.3.27
0.090209007263184 0.047057867050171
Output for 5.3.26
0.064462184906006 0.048366069793701
Output for 5.3.25
0.06326699256897 0.046972990036011
Output for 5.3.24
0.062725067138672 0.04540491104126
Output for 5.3.23
0.061316013336182 0.045825958251953
Output for 5.3.22
0.075839996337891 0.060904979705811
Output for 5.3.21
0.070292949676514 0.062592029571533
Output for 5.3.20
0.062773942947388 0.044595003128052
Output for 5.3.19
0.064606189727783 0.046072006225586
Output for 5.3.18
0.068001985549927 0.067854881286621
Output for 5.3.17
0.063936948776245 0.046827077865601
Output for 5.3.16
0.063610076904297 0.045748233795166
Output for 5.3.15
0.063167095184326 0.04601001739502
Output for 5.3.14
0.065078973770142 0.04827618598938
Output for 5.3.13
0.080639123916626 0.047778844833374
Output for 5.3.12
0.10246777534485 0.049210071563721
Output for 5.3.11
0.080170154571533 0.050185918807983
Output for 5.3.10
0.068767070770264 0.045700073242188
Output for 5.3.9
0.08965015411377 0.046072006225586
Output for 5.3.8
0.068298101425171 0.046812057495117
Output for 5.3.7
0.071009874343872 0.048845052719116
Output for 5.3.6
0.064893960952759 0.066274881362915
Output for 5.3.5
0.13319087028503 0.11352396011353
Output for 5.3.4
0.066170215606689 0.052961111068726
Output for 5.3.3
0.075456857681274 0.054916858673096
Output for 5.3.2
0.063547134399414 0.047569990158081
Output for 5.3.1
0.068889856338501 0.053839921951294
Output for 5.3.0
0.066341876983643 0.049855947494507
Output for 5.2.17
0.089576959609985 0.063562154769897
Output for 5.2.16
0.082367897033691 0.06328296661377
Output for 5.2.15
0.083548069000244 0.071330070495605
Output for 5.2.14
0.10254693031311 0.07239294052124
Output for 5.2.13
0.085734844207764 0.08768892288208
Output for 5.2.12
0.15253281593323 0.11589097976685
Output for 5.2.11
0.087231159210205 0.10293698310852
Output for 5.2.10
0.087476968765259 0.067409992218018
Output for 5.2.9
0.10445094108582 0.061681985855103
Output for 5.2.8
0.092338085174561 0.071320056915283
Output for 5.2.7
0.090334892272949 0.069127082824707
Output for 5.2.6
0.081723928451538 0.066378831863403
Output for 5.2.5
0.10790014266968 0.072359085083008
Output for 5.2.4
0.12158203125 0.10218095779419
Output for 5.2.3
0.10371899604797 0.092167854309082
Output for 5.2.2
0.10875511169434 0.068008899688721
Output for 5.2.1
0.077157020568848 0.06694507598877
Output for 5.2.0
0.13296413421631 0.071349859237671
Output for 5.1.6
0.083667039871216 0.078677892684937
Output for 5.1.5
0.080037832260132 0.077860832214355
Output for 5.1.4
0.10867094993591 0.083236932754517
Output for 5.1.3
0.12140202522278 0.091726064682007
Output for 5.1.2
0.15377688407898 0.10591292381287
Output for 5.1.1
0.084558963775635 0.065676927566528
Output for 5.1.0
0.1219220161438 0.092550039291382
Output for 5.0.5
0.24831700325012 0.22084188461304
Output for 5.0.4
0.2412109375 0.2311270236969
Output for 5.0.3
0.23219990730286 0.22194504737854
Output for 5.0.2
0.21480512619019 0.20039701461792
Output for 5.0.1
0.24702095985413 0.22216296195984
Output for 5.0.0
0.28680801391602 0.20391988754272
Output for 4.4.9
0.215068 0.214429
Output for 4.4.8
-0.782972 0.229264
Output for 4.4.7
0.230737 0.205467
Output for 4.4.6
-0.776072 0.207
Output for 4.4.5
0.218121 0.199304
Output for 4.4.4
0.226356 -0.782037
Output for 4.4.3
0.240603 0.24291
Output for 4.4.2
0.226253 -0.760879
Output for 4.4.1
0.216151 0.223098
Output for 4.4.0
0.287688 -0.773678
Output for 4.3.11
0.22636 0.216703
Output for 4.3.10
0.227243 -0.791664
Output for 4.3.9
0.222501 0.235857
Output for 4.3.8
0.253038 -0.783713
Output for 4.3.7
0.23568 0.215689
Output for 4.3.6
0.216804 -0.773053
Output for 4.3.5
0.31354 0.301966
Output for 4.3.4
-0.702808 0.263678
Output for 4.3.3
0.26806 0.235218
Output for 4.3.2
-0.733766 0.238189
Output for 4.3.1
0.405732 -0.736719
Output for 4.3.0
-0.84526 0.138315