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); } 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.60.0060.00916.50
8.3.50.0090.00616.47
8.3.40.0110.00718.83
8.3.30.0070.00718.84
8.3.20.0000.00720.05
8.3.10.0040.00423.70
8.3.00.0060.00319.66
8.2.180.0060.00925.92
8.2.170.0180.00418.79
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.37
8.2.120.0070.00026.35
8.2.110.0050.00520.47
8.2.100.0060.00617.72
8.2.90.0050.00319.26
8.2.80.0000.00717.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0080.00020.62
8.2.30.0060.00319.18
8.2.20.0000.00718.07
8.2.10.0040.00418.04
8.2.00.0040.00417.98
8.1.280.0150.00025.92
8.1.270.0080.00023.77
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.56
8.1.230.0040.00719.01
8.1.220.0050.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0050.00320.26
8.1.160.0050.00219.01
8.1.150.0040.00418.83
8.1.140.0000.00719.52
8.1.130.0000.00717.30
8.1.120.0040.00417.41
8.1.110.0000.00917.35
8.1.100.0000.00817.41
8.1.90.0070.00017.30
8.1.80.0000.00717.45
8.1.70.0050.00217.41
8.1.60.0000.00817.55
8.1.50.0080.00017.46
8.1.40.0000.00817.46
8.1.30.0030.00517.58
8.1.20.0030.00617.69
8.1.10.0040.00417.58
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0080.00018.37
8.0.270.0030.00317.19
8.0.260.0100.00016.74
8.0.250.0040.00416.80
8.0.240.0040.00416.88
8.0.230.0030.00316.87
8.0.220.0000.00716.75
8.0.210.0030.00316.82
8.0.200.0060.00016.89
8.0.190.0040.00416.79
8.0.180.0070.00016.74
8.0.170.0080.00016.77
8.0.160.0000.00716.78
8.0.150.0000.00816.72
8.0.140.0030.00316.78
8.0.130.0000.00513.29
8.0.120.0040.00416.73
8.0.110.0030.00616.72
8.0.100.0040.00416.63
8.0.90.0070.00016.61
8.0.80.0020.01416.83
8.0.70.0040.00416.66
8.0.60.0000.00716.63
8.0.50.0040.00416.70
8.0.30.0110.00716.93
8.0.20.0130.00717.40
8.0.10.0000.00716.95
8.0.00.0030.01416.75
7.4.330.0060.00015.55
7.4.320.0030.00316.54
7.4.300.0070.00016.41
7.4.290.0000.00716.46
7.4.280.0000.00816.61
7.4.270.0000.00716.65
7.4.260.0030.00316.59
7.4.250.0000.00716.36
7.4.240.0040.00416.53
7.4.230.0040.00416.25
7.4.220.0100.01016.48
7.4.210.0110.00516.62
7.4.200.0030.00316.63
7.4.160.0090.01116.61
7.4.150.0000.01917.40
7.4.140.0110.00817.86
7.4.130.0130.01316.52
7.4.120.0100.01216.58
7.4.110.0060.01216.42
7.4.100.0100.01016.50
7.4.90.0080.00816.29
7.4.80.0120.00319.39
7.4.70.0070.01016.58
7.4.60.0070.01016.54
7.4.50.0140.00016.38
7.4.40.0050.01116.57
7.4.30.0030.01416.21
7.4.00.0060.00915.05
7.3.330.0020.00213.23
7.3.320.0050.00013.17
7.3.310.0040.00416.40
7.3.300.0030.00316.24
7.3.290.0030.01016.36
7.3.280.0090.00716.38
7.3.270.0070.01117.40
7.3.260.0150.00616.24
7.3.250.0120.00716.45
7.3.240.0060.01316.42
7.3.230.0100.00816.27
7.3.210.0100.00716.37
7.3.200.0150.00316.42
7.3.190.0040.01316.29
7.3.180.0100.01316.39
7.3.170.0090.00916.50
7.3.160.0070.01116.49
7.2.330.0140.00316.22
7.2.320.0100.00716.50
7.2.310.0120.00416.45
7.2.300.0110.00716.58
7.2.290.0070.01016.25
7.2.80.0030.00916.52
7.2.60.0100.00716.55
7.1.200.0150.00615.96
7.1.70.0530.00915.46
7.1.60.0680.01433.09
7.1.50.0670.01333.09
7.1.40.0540.01032.52
7.1.30.0430.01732.52
7.1.20.0720.00732.58
7.1.10.0430.01014.88
7.1.00.1040.00914.84
7.0.200.0500.00914.92
7.0.190.0520.01014.86
7.0.180.0350.00714.64
7.0.170.0460.01314.52
7.0.160.0400.01314.51
7.0.150.0450.01214.59
7.0.140.0380.01114.46
7.0.130.0440.00914.88
7.0.120.0280.01514.75
7.0.110.0340.01914.30
7.0.100.0440.01314.74
7.0.90.0480.01214.57
7.0.80.0590.00914.75
7.0.70.0270.01014.58
7.0.60.0420.00714.11
7.0.50.0350.00914.49
7.0.40.0350.00714.71
7.0.30.0370.02114.80
7.0.20.0410.02014.50
7.0.10.0400.01114.49
7.0.00.0380.01114.56

preferences:
47.58 ms | 400 KiB | 5 Q