3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1,2,3]; $arr2 = $arr1; $arr2[1] = 2; debug_zval_dump('arr2'); key($arr2); debug_zval_dump('arr2'); unset($arr1); unset($arr2); $arr1 = [1,2,3]; $arr2 = $arr1; debug_zval_dump('arr2'); end($arr2); debug_zval_dump('arr2');

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.0140.00418.84
8.3.30.0110.00418.68
8.3.20.0080.00020.22
8.3.10.0000.00823.66
8.3.00.0050.00317.50
8.2.170.0100.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00817.50
8.2.110.0080.00322.25
8.2.100.0000.01217.80
8.2.90.0000.00719.05
8.2.80.0040.00417.97
8.2.70.0040.00417.49
8.2.60.0000.00818.04
8.2.50.0060.00318.07
8.2.40.0040.00421.19
8.2.30.0050.00320.62
8.2.20.0060.00317.68
8.2.10.0040.00418.03
8.2.00.0000.00818.11
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.61
8.1.230.0080.00417.66
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00418.88
8.1.160.0000.00721.95
8.1.150.0040.00420.69
8.1.140.0040.00417.38
8.1.130.0030.00317.53
8.1.120.0040.00417.36
8.1.110.0040.00417.40
8.1.100.0070.00017.41
8.1.90.0000.00817.39
8.1.80.0000.00717.38
8.1.70.0000.00717.42
8.1.60.0000.00717.47
8.1.50.0030.00517.48
8.1.40.0060.00317.50
8.1.30.0080.00317.51
8.1.20.0040.00417.48
8.1.10.0000.00817.43
8.1.00.0000.00817.51
8.0.300.0030.00518.77
8.0.290.0040.00416.63
8.0.280.0000.00718.41
8.0.270.0000.00716.62
8.0.260.0040.00417.10
8.0.250.0000.00716.84
8.0.240.0030.00316.85
8.0.230.0000.00716.92
8.0.220.0030.00316.81
8.0.210.0000.00716.83
8.0.200.0030.00316.89
8.0.190.0000.00716.81
8.0.180.0030.00316.85
8.0.170.0040.00416.79
8.0.160.0030.00516.81
8.0.150.0080.00016.73
8.0.140.0000.00716.74
8.0.130.0060.00013.24
8.0.120.0000.00716.74
8.0.110.0000.00716.71
8.0.100.0030.00316.81
8.0.90.0000.00816.69
8.0.80.0030.01316.77
8.0.70.0040.00416.75
8.0.60.0070.00016.73
8.0.50.0040.00416.93
8.0.30.0120.00616.95
8.0.20.0110.01017.40
8.0.10.0000.00816.94
8.0.00.0070.01016.88
7.4.330.0000.00615.08
7.4.320.0030.00316.44
7.4.300.0000.00616.33
7.4.290.0070.00016.41
7.4.280.0080.00016.43
7.4.270.0040.00416.38
7.4.260.0030.00616.36
7.4.250.0070.00016.44
7.4.240.0040.00416.36
7.4.230.0070.00016.33
7.4.220.0090.01016.50
7.4.210.0090.00716.46
7.4.200.0080.00016.42
7.4.160.0110.00516.52
7.4.150.0030.01417.40
7.4.140.0120.00517.86
7.4.130.0090.01116.54
7.4.120.0120.00716.43
7.4.110.0070.01416.30
7.4.100.0150.00316.33
7.4.90.0100.00716.34
7.4.80.0150.00719.39
7.4.70.0070.01016.44
7.4.60.0070.01016.27
7.4.50.0040.00416.53
7.4.40.0030.01316.45
7.4.30.0130.00316.37
7.4.00.0110.00414.52
7.3.330.0050.00013.13
7.3.320.0060.00013.06
7.3.310.0030.00316.27
7.3.300.0070.00016.17
7.3.290.0030.00316.27
7.3.280.0080.01116.24
7.3.270.0130.00717.40
7.3.260.0090.01416.29
7.3.250.0080.00916.25
7.3.240.0130.00516.31
7.3.230.0030.01216.39
7.3.210.0040.01216.27
7.3.200.0110.00716.66
7.3.190.0140.00416.22
7.3.180.0080.00816.54
7.3.170.0070.01016.32
7.3.160.0130.00316.22
7.2.330.0100.00716.52
7.2.320.0030.01516.55
7.2.310.0170.00316.58
7.2.300.0100.00716.48
7.2.290.0160.00616.58
7.2.60.0090.00316.80
7.2.00.0060.00919.31
7.1.200.0060.00615.98
7.1.100.0070.00718.20
7.1.70.0000.01017.09
7.1.60.0100.01319.43
7.1.50.0100.01016.52
7.1.00.0000.08022.28
7.0.200.0380.00714.55
7.0.60.0070.07320.01
7.0.50.0030.05317.91
7.0.40.0030.04320.40
7.0.30.0370.08020.04
7.0.20.0300.07720.12
7.0.10.0030.06020.01
7.0.00.0030.08720.10
5.6.280.0000.06321.09
5.6.210.0000.04320.70
5.6.200.0070.08318.08
5.6.190.0070.04020.35
5.6.180.3300.03720.77
5.6.170.0300.05320.38
5.6.160.0070.03720.38
5.6.150.0000.04318.12
5.6.140.0030.04318.14
5.6.130.0070.05318.18
5.6.120.0100.08320.98
5.6.110.0000.04320.98
5.6.100.0130.08020.98
5.6.90.0030.04020.97
5.6.80.0030.04020.28
5.5.350.4370.02720.46
5.5.340.0100.06017.97
5.5.330.0130.04320.46
5.5.320.0270.03320.34
5.5.310.0230.05020.28
5.5.300.0070.08017.98
5.5.290.0030.04017.90
5.5.280.0070.04320.85
5.5.270.0070.04320.87
5.5.260.0000.04720.79
5.5.250.0030.04720.54
5.5.240.0100.08020.25
5.4.450.0630.06019.13
5.4.440.0600.06319.41
5.4.430.0670.06319.55
5.4.420.0630.04719.10
5.4.410.0730.06019.38
5.4.400.0630.05719.00
5.4.390.0670.05719.02
5.4.380.0600.05719.25
5.4.370.0670.05318.77
5.4.360.0700.05719.24
5.4.350.0730.04319.16
5.4.340.0730.04719.27
5.4.320.0630.05319.13
5.4.310.0670.05019.26
5.4.300.0670.05719.18
5.4.290.0770.06319.16
5.4.280.0970.06719.17
5.4.270.0970.05319.21
5.4.260.0570.0407.91
5.4.250.0800.05719.25
5.4.240.0770.05319.09
5.4.230.0700.06019.05
5.4.220.0770.06719.25
5.4.210.0630.06319.23
5.4.200.0800.06719.26
5.4.190.0730.06719.14
5.4.180.0730.05319.30
5.4.170.0830.06018.77
5.4.160.0900.06019.28
5.4.150.0730.04719.20
5.4.140.0600.07316.36
5.4.130.0830.03016.32
5.4.120.0600.05016.42
5.4.110.0530.05716.48
5.4.100.0170.05316.35
5.4.90.0130.04716.07
5.4.80.0330.06316.37
5.4.70.0730.05016.43
5.4.60.0770.06016.53
5.4.50.0730.04016.43
5.4.40.0500.04716.33
5.4.30.0500.05016.52
5.4.20.0430.05316.55
5.4.10.0730.07016.27
5.4.00.0600.05015.88

preferences:
56.17 ms | 400 KiB | 5 Q