3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); list($k, $v) = each($a); reset ($a); var_dump($a[$k])); unset ($a[$k]);

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.350.0080.03712.02
5.4.340.0130.06812.02
5.4.320.0160.08112.50
5.4.310.0120.04812.50
5.4.300.0120.05412.50
5.4.290.0100.06412.50
5.4.280.0090.07512.39
5.4.270.0150.07412.39
5.4.260.0120.06012.39
5.4.250.0180.09712.39
5.4.240.0100.06412.39
5.4.230.0080.06512.39
5.4.220.0200.06312.39
5.4.210.0090.06612.39
5.4.200.0100.07112.39
5.4.190.0100.05212.38
5.4.180.0100.07412.38
5.4.170.0120.05212.39
5.4.160.0090.04912.39
5.4.150.0140.09112.38
5.4.140.0120.05612.07
5.4.130.0060.07412.05
5.4.120.0120.05312.02
5.4.110.0180.08312.02
5.4.100.0140.07312.02
5.4.90.0150.04412.02
5.4.80.0090.05812.01
5.4.70.0070.05212.01
5.4.60.0080.05512.01
5.4.50.0060.04112.01
5.4.40.0070.04312.00
5.4.30.0060.04412.00
5.4.20.0100.06011.99
5.4.10.0180.09212.00
5.4.00.0160.10011.49
5.3.290.0250.12412.80
5.3.280.0140.06412.71
5.3.270.0130.08412.72
5.3.260.0150.07512.72
5.3.250.0100.06312.71
5.3.240.0110.04312.72
5.3.230.0220.10212.70
5.3.220.0130.10412.68
5.3.210.0100.05312.68
5.3.200.0100.04412.68
5.3.190.0190.10112.67
5.3.180.0110.08312.67
5.3.170.0080.05812.67
5.3.160.0100.04612.67
5.3.150.0090.04412.67
5.3.140.0130.06612.66
5.3.130.0210.10212.66
5.3.120.0140.09412.66
5.3.110.0080.09812.66
5.3.100.0080.04112.11
5.3.90.0140.04912.08
5.3.80.0090.03912.07
5.3.70.0140.06412.08
5.3.60.0110.05812.07
5.3.50.0110.04212.00
5.3.40.0090.05912.00
5.3.30.0100.05411.95
5.3.20.0060.04011.73
5.3.10.0050.03911.70
5.3.00.0060.04111.69
5.2.170.0100.0369.19
5.2.160.0070.0439.18
5.2.150.0080.0379.18
5.2.140.0080.0399.18
5.2.130.0030.0379.14
5.2.120.0080.0339.14
5.2.110.0060.0379.15
5.2.100.0060.0359.14
5.2.90.0080.0379.14
5.2.80.0050.0389.14
5.2.70.0050.0339.14
5.2.60.0090.0379.09
5.2.50.0130.0339.06
5.2.40.0070.0489.04
5.2.30.0090.0549.01
5.2.20.0090.0409.00
5.2.10.0080.0378.93
5.2.00.0060.0318.79
5.1.60.0100.0508.07
5.1.50.0160.0668.07
5.1.40.0090.0308.05
5.1.30.0060.0338.40
5.1.20.0060.0358.42
5.1.10.0030.0308.15
5.1.00.0030.0328.14
5.0.50.0050.0276.63
5.0.40.0030.0216.48
5.0.30.0040.0386.29
5.0.20.0070.0386.27
5.0.10.0060.0216.24
5.0.00.0070.0456.24
4.4.90.0080.0404.78
4.4.80.0050.0244.75
4.4.70.0060.0204.75
4.4.60.0040.0274.76
4.4.50.0060.0154.77
4.4.40.0030.0264.71
4.4.30.0030.0184.76
4.4.20.0030.0174.84
4.4.10.0050.0174.84
4.4.00.0050.0294.75
4.3.110.0040.0174.67
4.3.100.0070.0174.67
4.3.90.0030.0194.63
4.3.80.0030.0294.59
4.3.70.0030.0174.63
4.3.60.0070.0184.63
4.3.50.0020.0224.62
4.3.40.0040.0264.54
4.3.30.0090.0303.29
4.3.20.0030.0183.26
4.3.10.0020.0223.22
4.3.00.0130.0206.96

preferences:
161.42 ms | 1394 KiB | 7 Q