3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = [1, 2, 3, 4, 5]; $a = array_shift($c); $b = array_shift($c); var_dump($a, $b, $c);

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)
8.3.70.0030.01316.63
8.3.60.0120.00318.27
8.3.50.0190.01221.92
8.3.40.0150.00618.32
8.3.30.0100.00318.59
8.3.20.0050.00320.16
8.3.10.0090.00020.29
8.3.00.0080.00020.46
8.2.180.0070.00716.38
8.2.170.0140.00022.96
8.2.160.0100.00320.52
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00319.13
8.2.120.0050.00226.35
8.2.110.0110.00022.25
8.2.100.0110.00017.93
8.2.90.0040.00419.27
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0000.00917.91
8.2.50.0110.00018.10
8.2.40.0040.00420.43
8.2.30.0000.00920.51
8.2.20.0050.00217.54
8.2.10.0040.00418.04
8.2.00.0040.00418.09
8.1.280.0120.00625.92
8.1.270.0070.00023.91
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0040.00422.61
8.1.230.0110.00017.64
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0070.00417.23
8.1.190.0070.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.47
8.1.160.0040.00420.87
8.1.150.0000.00718.80
8.1.140.0000.00719.49
8.1.130.0000.00717.59
8.1.120.0030.00517.29
8.1.110.0030.00517.37
8.1.100.0000.00717.30
8.1.90.0070.00017.30
8.1.80.0000.00717.30
8.1.70.0040.00417.35
8.1.60.0000.00817.57
8.1.50.0080.00017.32
8.1.40.0030.00617.47
8.1.30.0050.00317.55
8.1.20.0040.00417.57
8.1.10.0080.00017.42
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00818.38
8.0.270.0040.00417.17
8.0.260.0000.00617.18
8.0.250.0000.00716.87
8.0.240.0000.00616.88
8.0.230.0030.00316.78
8.0.220.0000.00716.85
8.0.210.0020.00516.79
8.0.200.0000.00616.73
8.0.190.0040.00416.82
8.0.180.0080.00016.74
8.0.170.0000.00816.86
8.0.160.0040.00416.91
8.0.150.0050.00316.79
8.0.140.0040.00316.74
8.0.130.0030.00313.28
8.0.120.0020.00516.82
8.0.110.0000.00716.82
8.0.100.0040.00416.80
8.0.90.0000.00816.77
8.0.80.0070.00716.88
8.0.70.0040.00416.66
8.0.60.0000.00716.88
8.0.50.0080.00016.64
8.0.30.0080.01116.98
8.0.20.0090.01017.40
8.0.10.0050.00216.91
8.0.00.0110.00816.73
7.4.330.0000.00515.08
7.4.320.0080.00016.55
7.4.300.0070.00016.33
7.4.290.0030.00316.51
7.4.280.0030.00516.45
7.4.270.0040.00416.49
7.4.260.0030.00316.42
7.4.250.0050.00316.43
7.4.240.0030.00316.43
7.4.230.0000.00716.22
7.4.220.0070.01116.48
7.4.210.0130.00716.53
7.4.200.0000.00816.63
7.4.160.0060.01016.46
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0090.01016.42
7.4.120.0100.01016.36
7.4.110.0030.01316.43
7.4.100.0150.00416.25
7.4.90.0070.01016.57
7.4.80.0120.00619.39
7.4.70.0090.00916.28
7.4.60.0080.00816.51
7.4.50.0060.00616.05
7.4.40.0160.00016.27
7.4.30.0040.01116.42
7.4.00.0110.00415.10
7.3.330.0000.00612.96
7.3.320.0050.00013.10
7.3.310.0030.00516.21
7.3.300.0030.00316.13
7.3.290.0030.01416.15
7.3.280.0090.00716.10
7.3.270.0080.00817.40
7.3.260.0180.00016.14
7.3.250.0100.01016.26
7.3.240.0100.00816.39
7.3.230.0080.00816.39
7.3.210.0140.00516.51
7.3.200.0120.00416.14
7.3.190.0160.00316.14
7.3.180.0000.01616.15
7.3.170.0150.00816.43
7.3.160.0070.01016.23
7.2.330.0160.00516.49
7.2.320.0070.01616.49
7.2.310.0060.00916.48
7.2.300.0060.01416.55
7.2.290.0070.01016.55
7.2.60.0190.00516.39
7.2.00.0030.00719.19
7.1.200.0000.01315.34
7.1.100.0030.01117.87
7.1.70.0030.00617.20
7.1.60.0170.00719.28
7.1.00.0070.07322.30
7.0.200.0000.00716.71
7.0.60.0370.07019.78
7.0.50.0070.08017.83
7.0.40.0300.06320.19
7.0.30.0200.07720.42
7.0.20.0170.07720.02
7.0.10.0270.08720.07
7.0.00.0470.06720.09
5.6.280.0130.06320.92
5.6.210.0030.08720.71
5.6.200.0030.04018.09
5.6.190.0230.06320.55
5.6.180.0170.06320.47
5.6.170.0100.06720.56
5.6.160.0170.05720.32
5.6.150.0370.06720.39
5.6.140.0300.06020.37
5.6.130.0370.04320.29
5.6.120.0300.06020.42
5.6.110.0230.06020.43
5.6.100.0400.05320.48
5.6.90.0200.06720.50
5.6.80.0300.06719.89
5.6.70.0330.04719.48
5.6.60.0230.06019.71
5.6.50.0130.06019.51
5.6.40.0200.06019.52
5.6.30.0300.06319.75
5.6.20.0170.06719.82
5.6.10.0330.04719.46
5.6.00.0200.07019.47
5.5.350.0070.07020.40
5.5.340.0070.07017.97
5.5.330.0270.06320.31
5.5.320.0230.06020.18
5.5.310.0230.06320.14
5.5.300.0230.06719.91
5.5.290.0370.05720.25
5.5.280.0230.06019.90
5.5.270.0230.06720.28
5.5.260.0400.07019.90
5.5.250.0270.07019.98
5.5.240.0470.04319.36
5.5.230.0100.07019.30
5.5.220.0300.05319.31
5.5.210.0200.05719.69
5.5.200.0230.05719.59
5.5.190.0130.07019.45
5.5.180.0170.06019.67
5.5.160.0400.04319.54
5.5.150.0270.05319.57
5.5.140.0200.08319.52
5.5.130.0230.07719.52
5.5.120.0270.07319.52
5.5.110.0300.07319.25
5.5.100.0300.06719.22
5.5.90.0300.07019.45
5.5.80.0330.05019.21
5.5.70.0170.06319.38
5.5.60.0270.06019.19
5.5.50.0100.06319.21
5.5.40.0200.05319.46
5.5.30.0270.05319.46
5.5.20.0230.05319.57
5.5.10.0200.05719.30
5.5.00.0330.04319.30

preferences:
53.31 ms | 401 KiB | 5 Q