3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stack = array("orange", "banana", "apple", "raspberry"); $fruit = array_shift($stack); print_r($stack); $_room = array(); for($i = 2; $i < 8; $i++) {$_room[] = array_shift($stack);}print_r($_room); unset($_room[2]) print_r($_room); foreach($_room as $value){ print "value=".$value."\n";}?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.320.0230.05719.08
5.4.310.0300.05318.96
5.4.300.0300.05019.08
5.4.290.0300.05719.13
5.4.280.0370.06318.99
5.4.270.0370.06319.22
5.4.260.0270.04319.14
5.4.250.0300.07019.07
5.4.240.0330.06318.84
5.4.230.0300.07319.21
5.4.220.0230.05719.12
5.4.210.0370.05718.94
5.4.200.0270.07019.00
5.4.190.0330.06319.30
5.4.180.0230.04019.18
5.4.170.0170.04319.07
5.4.160.0230.03719.11
5.4.150.0200.04319.29
5.4.140.0170.07016.67
5.4.130.0170.04016.38
5.4.120.0170.03316.32
5.4.110.0170.03316.55
5.4.100.0170.03316.26
5.4.90.0100.05016.40
5.4.80.0170.03316.55
5.4.70.0200.03316.25
5.4.60.0200.03016.34
5.4.50.0170.03316.44
5.4.40.0170.03316.46
5.4.30.0130.03716.51
5.4.20.0100.04016.51
5.4.10.0230.03016.16
5.4.00.0130.04015.84
5.3.290.0230.05314.54
5.3.280.0270.04714.54
5.3.270.0230.05714.54
5.3.260.0270.03014.45
5.3.250.0130.04714.46
5.3.240.0200.04014.54
5.3.230.0170.03714.50
5.3.220.0270.02714.42
5.3.210.0170.04314.51
5.3.200.0170.04314.50
5.3.190.0130.04014.40
5.3.180.0200.03714.61
5.3.170.0170.03314.51
5.3.160.0330.03714.42
5.3.150.0200.03014.38
5.3.140.0170.03314.61
5.3.130.0200.04014.39
5.3.120.0130.05014.42
5.3.110.0170.03314.46
5.3.100.0170.03713.87
5.3.90.0100.04013.90
5.3.80.0100.04014.08
5.3.70.0270.02313.98
5.3.60.0170.03314.03
5.3.50.0200.03313.92
5.3.40.0100.04313.73
5.3.30.0200.03313.77
5.3.20.0200.03013.63
5.3.10.0270.02313.49
5.3.00.0230.03713.59
5.2.170.0130.03012.33
5.2.160.0170.02312.33
5.2.150.0170.02312.33
5.2.140.0100.03012.33
5.2.130.0100.03012.33
5.2.120.0130.02712.33
5.2.110.0130.02712.33
5.2.100.0200.03012.33
5.2.90.0070.03312.33
5.2.80.0230.04012.33
5.2.70.0170.04712.33
5.2.60.0200.05312.33
5.2.50.0230.03712.33
5.2.40.0230.05012.33
5.2.30.0200.05712.33
5.2.20.0200.05312.33
5.2.10.0230.05312.33
5.2.00.0200.05312.33
5.1.60.0130.05312.33
5.1.50.0230.04712.33
5.1.40.0170.05012.33
5.1.30.0130.05712.33
5.1.20.0270.04712.33
5.1.10.0200.05012.33
5.1.00.0230.04012.33
5.0.50.0130.04012.33
5.0.40.0130.02312.33
5.0.30.0100.06312.33
5.0.20.0100.03312.33
5.0.10.0070.04712.33
5.0.00.0070.06012.33
4.4.90.0130.02312.33
4.4.80.0130.03012.33
4.4.70.0070.03012.33
4.4.60.0100.03312.33
4.4.50.0100.02012.33
4.4.40.0170.03712.33
4.4.30.0100.03312.33
4.4.20.0170.03012.33
4.4.10.0170.01312.33
4.4.00.0100.05312.33
4.3.110.0070.03712.33
4.3.100.0100.02712.33
4.3.90.0100.03712.33
4.3.80.0100.04312.33
4.3.70.0130.03012.33
4.3.60.0100.03012.33
4.3.50.0070.02312.33
4.3.40.0100.02312.33
4.3.30.0070.01712.33
4.3.20.0030.03312.33
4.3.10.0100.02012.33
4.3.00.0130.02312.33

preferences:
164.54 ms | 1398 KiB | 7 Q