3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); $arr = range(1, 10000); foreach (array_reverse($arr) as $v) { array_pop($arr); } echo round(microtime(true) - $start, 5);
Output for 7.1.0
0.00071
Output for 7.0.14
0.00078
Output for 7.0.6
0.00116
Output for 7.0.5
0.00094
Output for 7.0.4
0.00047
Output for 7.0.3
0.00066
Output for 7.0.2
0.00064
Output for 7.0.1
0.00042
Output for 7.0.0
0.00068
Output for hhvm-3.12.0
0.00108
Output for hhvm-3.10.0
0.00127
Output for 5.2.1, 5.3.4, 5.6.28
0.00507
Output for 5.5.26, 5.6.21
0.00442
Output for 5.6.20
0.00379
Output for 5.3.25, 5.6.19
0.00365
Output for 5.4.43, 5.5.34, 5.6.18
0.00287
Output for 5.6.17
0.00419
Output for 5.4.37, 5.6.10, 5.6.16
0.00447
Output for 5.6.15
0.00289
Output for 5.4.39, 5.6.14
0.00411
Output for 5.3.0, 5.6.13
0.0043
Output for 5.6.12
0.00331
Output for 5.6.11
0.00533
Output for 5.4.21, 5.6.9
0.00307
Output for 5.6.8
0.00429
Output for 5.6.7
0.00243
Output for 5.5.35
0.00298
Output for 5.3.3, 5.5.33
0.00465
Output for 5.5.32
0.00394
Output for 5.5.31
0.00445
Output for 5.4.12, 5.5.30
0.00448
Output for 5.5.29
0.00424
Output for 5.4.15, 5.5.28
0.00305
Output for 5.5.27
0.00436
Output for 5.1.3, 5.5.25
0.00532
Output for 5.5.24
0.00363
Output for 5.4.45
0.00286
Output for 5.4.44
0.00322
Output for 5.4.42
0.0029
Output for 5.4.41
0.00285
Output for 5.4.40
0.00492
Output for 5.4.38
0.00406
Output for 5.4.36
0.00359
Output for 5.3.24, 5.4.11, 5.4.35
0.00486
Output for 5.3.6, 5.4.34
0.00444
Output for 5.4.32
0.00319
Output for 5.4.31
0.0035
Output for 5.4.30
0.00485
Output for 5.4.29
0.00453
Output for 5.4.19, 5.4.28
0.00313
Output for 5.4.27
0.00308
Output for 5.4.26
0.00469
Output for 5.4.23, 5.4.25
0.00439
Output for 5.4.24
0.00389
Output for 5.3.5, 5.4.9, 5.4.22
0.00461
Output for 5.4.20
0.0042
Output for 5.4.18
0.00425
Output for 5.4.14, 5.4.17
0.00315
Output for 5.4.16
0.00422
Output for 5.4.3, 5.4.13
0.00417
Output for 5.4.10
0.0036
Output for 4.4.2, 5.4.8
0.00588
Output for 5.4.1, 5.4.7
0.00375
Output for 5.4.6
0.00391
Output for 5.4.5
0.00386
Output for 5.3.10, 5.4.2, 5.4.4
0.00457
Output for 5.4.0
0.0033
Output for 5.3.29
0.00401
Output for 5.3.28
0.00497
Output for 5.3.27
0.00438
Output for 5.3.26
0.0046
Output for 5.3.23
0.0032
Output for 5.3.22
0.00483
Output for 5.3.21
0.00487
Output for 5.3.20
0.00452
Output for 5.3.19
0.00548
Output for 5.3.18
0.00355
Output for 5.3.17
0.00539
Output for 5.3.16
0.00475
Output for 5.3.15
0.0041
Output for 5.3.14
0.00481
Output for 5.3.13
0.00407
Output for 5.3.12
0.00354
Output for 5.3.11
0.00482
Output for 5.3.9
0.00353
Output for 5.3.8
0.00374
Output for 5.3.7
0.00526
Output for 5.3.2
0.00384
Output for 5.3.1
0.00536
Output for 5.2.17
0.00555
Output for 5.2.16
0.00564
Output for 5.2.15
0.00478
Output for 5.2.14
0.00579
Output for 5.2.13
0.00553
Output for 5.2.12
0.00557
Output for 5.2.11
0.0059
Output for 5.2.10
0.00596
Output for 5.2.9
0.00435
Output for 5.2.8
0.00392
Output for 4.3.10, 5.2.7
0.005
Output for 5.2.6
0.00468
Output for 5.2.5
0.00593
Output for 5.2.4
0.0066
Output for 5.2.3
0.00659
Output for 5.2.2
0.00655
Output for 5.2.0
0.0045
Output for 5.1.6
0.00383
Output for 5.1.5
0.00509
Output for 5.1.4
0.0063
Output for 5.1.2
0.00589
Output for 5.1.1
0.00709
Output for 5.1.0
0.0057
Output for 5.0.5
0.00763
Output for 5.0.4
0.00597
Output for 5.0.3
0.00546
Output for 5.0.2
0.00547
Output for 5.0.1
0.008
Output for 5.0.0
0.0055
Output for 4.4.9
0.00815
Output for 4.4.8
0.00865
Output for 4.4.7
0.00639
Output for 4.4.6
0.00829
Output for 4.4.5
0.00432
Output for 4.4.4
0.00598
Output for 4.4.3
0.00845
Output for 4.4.1
0.00454
Output for 4.4.0
0.0049
Output for 4.3.11
0.00421
Output for 4.3.9
0.01011
Output for 4.3.8
0.00556
Output for 4.3.7
0.01103
Output for 4.3.6
0.0088
Output for 4.3.5
0.00883
Output for 4.3.4
0.00915
Output for 4.3.3
0.01049
Output for 4.3.2
0.01056
Output for 4.3.1
0.00908
Output for 4.3.0
0.01059