3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(1,1000000); $start_time = microtime(true); $x=array_shift($range); $end_time = microtime(true); echo ($end_time - $start_time);
Output for 7.1.0
0.0038430690765381
Output for 7.0.14
0.0048830509185791
Output for 7.0.12
0.0050599575042725
Output for 7.0.6
0.0032238960266113
Output for 7.0.5
0.0035369396209717
Output for 7.0.4
0.0039069652557373
Output for 7.0.3
0.0041089057922363
Output for 7.0.2
0.0039961338043213
Output for 7.0.1
0.0036358833312988
Output for 7.0.0
0.0048191547393799
Output for 5.3.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/o2hZf on line 3
Process exited with code 255.
Output for 5.2.2 - 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/o2hZf on line 3
Process exited with code 255.
Output for 5.2.1
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /in/o2hZf on line 3
Process exited with code 255.
Output for 5.2.0
0.03277587890625
Output for 5.1.6
0.039849996566772
Output for 5.1.5
0.03957200050354
Output for 5.1.4
0.039687871932983
Output for 5.1.3
0.039463043212891
Output for 5.1.2
0.044988870620728
Output for 5.1.1
0.060691118240356
Output for 5.1.0
0.045281887054443
Output for 5.0.5
0.041232109069824
Output for 5.0.4
0.040809154510498
Output for 5.0.3
0.039713859558105
Output for 5.0.2
0.039849042892456
Output for 5.0.1
0.03971791267395
Output for 5.0.0
0.039648056030273
Output for 4.4.9
0.044085
Output for 4.4.8
0.041894
Output for 4.3.8, 4.4.7
0.041525
Output for 4.4.6
0.041506
Output for 4.4.5
0.049445
Output for 4.4.4
0.041561
Output for 4.4.3
0.041739
Output for 4.4.2
0.041939
Output for 4.4.1
0.04391
Output for 4.4.0
0.041826
Output for 4.3.11
0.043465
Output for 4.3.10
0.041562
Output for 4.3.9
0.041487
Output for 4.3.7
0.041208
Output for 4.3.6
0.048951
Output for 4.3.5
0.065425
Output for 4.3.4
-0.9352
Output for 4.3.3
0.052229
Output for 4.3.2
0.047066
Output for 4.3.1
0.046996
Output for 4.3.0
0.046692