3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = [0, 1, 2, 3]; unset($x[0]); // There's no index 0. function foo(...$arg) { var_dump($arg); } var_dump(...$x); foo($x); // Yet no errors or nothing: [0 => 1, 1 => 2, 2 => 3] $y = [0, 1]; $y[3] = 3; // Adding elements out of order. $y[2] = 2; var_dump($y); // Out of order: [0 => 0, 1 => 1, 3 => 3, 2 => 2] foo(...$y); // Uses the order, not the indexes: [0 => 0, 1 => 1, 2 => 3, 3 => 2]

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.40.0030.01018.70
8.3.30.0120.00318.64
8.3.20.0000.00720.30
8.3.10.0040.00423.65
8.3.00.0050.00319.76
8.2.170.0110.00722.96
8.2.160.0120.00919.04
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00419.30
8.2.120.0080.00026.35
8.2.110.0060.00619.10
8.2.100.0000.01117.72
8.2.90.0040.00419.26
8.2.80.0080.00017.97
8.2.70.0030.00717.50
8.2.60.0080.00018.04
8.2.50.0080.00018.10
8.2.40.0000.00820.65
8.2.30.0040.00421.02
8.2.20.0080.00017.91
8.2.10.0040.00418.04
8.2.00.0000.00818.16
8.1.270.0030.00522.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00019.06
8.1.230.0080.00319.10
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0000.00818.72
8.1.160.0040.00418.97
8.1.150.0040.00420.53
8.1.140.0050.00319.48
8.1.130.0030.00618.82
8.1.120.0030.00617.34
8.1.110.0040.00417.28
8.1.100.0070.00017.39
8.1.90.0040.00417.28
8.1.80.0050.00217.38
8.1.70.0040.00417.32
8.1.60.0040.00417.57
8.1.50.0050.00317.40
8.1.40.0000.01117.53
8.1.30.0040.00417.55
8.1.20.0030.00517.64
8.1.10.0050.00217.57
8.1.00.0000.00717.45
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0070.00018.29
8.0.270.0000.00717.18
8.0.260.0000.00616.69
8.0.250.0060.00016.92
8.0.240.0060.00316.90
8.0.230.0030.00316.76
8.0.220.0070.00016.84
8.0.210.0030.00316.83
8.0.200.0070.00016.76
8.0.190.0040.00416.81
8.0.180.0070.00016.91
8.0.170.0040.00416.90
8.0.160.0000.00716.71
8.0.150.0030.00516.86
8.0.140.0000.00816.82
8.0.130.0030.00313.21
8.0.120.0080.00016.81
8.0.110.0040.00416.76
8.0.100.0040.00416.72
8.0.90.0070.00016.77
8.0.80.0080.00816.78
8.0.70.0070.00016.86
8.0.60.0020.00516.81
8.0.50.0000.00816.61
8.0.30.0080.00917.05
8.0.20.0090.00917.40
8.0.10.0000.00716.73
8.0.00.0140.00316.90
7.4.330.0000.00515.55
7.4.320.0060.00016.43
7.4.300.0000.00616.47
7.4.290.0000.00916.63
7.4.280.0040.00416.53
7.4.270.0030.00316.46
7.4.260.0030.00316.60
7.4.250.0040.00416.47
7.4.240.0000.00816.49
7.4.230.0030.00316.40
7.4.220.0040.01416.63
7.4.210.0030.01016.57
7.4.200.0030.00316.45
7.4.160.0120.00416.40
7.4.150.0110.00717.40
7.4.140.0060.01217.86
7.4.130.0160.01016.56
7.4.120.0090.00916.41
7.4.110.0070.01016.42
7.4.100.0070.01716.46
7.4.90.0120.00416.46
7.4.80.0040.01219.39
7.4.70.0100.00616.36
7.4.60.0070.01016.55
7.4.50.0070.01116.25
7.4.40.0110.00716.53
7.4.30.0140.00716.59
7.4.00.0060.01015.05
7.3.330.0060.00013.43
7.3.320.0030.00313.37
7.3.310.0020.00516.37
7.3.300.0040.00416.38
7.3.290.0090.00816.37
7.3.280.0090.00916.34
7.3.270.0150.00317.40
7.3.260.0120.01916.54
7.3.250.0080.01016.40
7.3.240.0140.00616.63
7.3.230.0080.00816.25
7.3.210.0060.01116.67
7.3.200.0090.01616.30
7.3.190.0100.00616.34
7.3.180.0090.01216.32
7.3.170.0060.01116.38
7.3.160.0060.00916.36
7.3.10.0110.01116.49
7.3.00.0150.01116.19
7.2.330.0070.01016.27
7.2.320.0090.00916.69
7.2.310.0070.01016.45
7.2.300.0100.00716.60
7.2.290.0080.01616.38
7.2.130.0200.00016.64
7.2.120.0190.00316.38
7.2.110.0030.01016.14
7.2.100.0030.01316.07
7.2.90.0040.01116.24
7.2.80.0070.00616.57
7.2.70.0100.00716.44
7.2.60.0050.00816.75
7.2.50.0080.00816.36
7.2.40.0090.00616.61
7.2.30.0090.00716.57
7.2.20.0140.00416.33
7.2.10.0060.00716.58
7.2.00.0100.00218.00
7.1.250.0080.00515.64
7.1.200.0000.00815.98
7.1.100.0040.00718.28
7.1.70.0110.00517.30
7.1.60.0280.00735.00
7.1.50.0150.01534.70
7.1.40.0260.00734.59
7.1.30.0210.00634.36
7.1.20.0210.00634.26
7.1.10.0040.01216.45
7.1.00.0030.01016.49
7.0.200.0050.00916.91
7.0.190.0040.01116.92
7.0.180.0040.01116.42
7.0.170.0030.01016.34
7.0.160.0140.00616.18
7.0.150.0060.00916.21
7.0.140.0060.00916.32
7.0.130.0030.01016.36
7.0.120.0070.00716.60
7.0.110.0080.00816.34
7.0.100.0000.01216.22
7.0.90.0030.01016.45
7.0.80.0060.00616.11
7.0.70.0070.00716.21
7.0.60.0070.00716.25
7.0.50.0070.00716.23
7.0.40.0110.00316.53
7.0.30.0030.01016.51
7.0.20.0030.01116.31
7.0.10.0140.00016.34
7.0.00.0000.01416.34

preferences:
49.86 ms | 400 KiB | 5 Q