3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1); $a = $arr[0]; //$a and $arr[0] are in the same reference set $arr2 = $arr; //not an assignment-by-reference! $arr2[0]++; /* $a == 2, $arr == array(2) */ /* The contents of $arr are changed even though it's not a reference! */ var_dump($a); var_dump($arr);

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.0100.00718.30
8.3.50.0050.01521.27
8.3.40.0090.00618.71
8.3.30.0110.00420.26
8.3.20.0080.00020.07
8.3.10.0050.00321.10
8.3.00.0080.00022.46
8.2.180.0150.00316.50
8.2.170.0090.00922.96
8.2.160.0070.00722.02
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0110.00026.16
8.2.120.0080.00020.86
8.2.110.0030.00619.34
8.2.100.0110.00017.66
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0050.00318.21
8.2.30.0040.00419.49
8.2.20.0050.00217.71
8.2.10.0040.00417.75
8.2.00.0030.00517.72
8.1.280.0100.01025.92
8.1.270.0030.00623.99
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00022.59
8.1.230.0110.00020.85
8.1.220.0030.00518.77
8.1.210.0070.00019.02
8.1.200.0040.00417.10
8.1.190.0080.00017.53
8.1.180.0080.00018.10
8.1.170.0060.00618.44
8.1.160.0030.00518.72
8.1.150.0070.00018.48
8.1.140.0070.00017.38
8.1.130.0000.00717.94
8.1.120.0050.00317.29
8.1.110.0080.00017.28
8.1.100.0080.00017.36
8.1.90.0000.00817.44
8.1.80.0030.00317.29
8.1.70.0070.00017.39
8.1.60.0000.00817.48
8.1.50.0020.00517.43
8.1.40.0000.00817.46
8.1.30.0080.00017.49
8.1.20.0040.00417.62
8.1.10.0050.00317.54
8.1.00.0030.00617.31
8.0.300.0070.00019.89
8.0.290.0000.00916.93
8.0.280.0000.00718.36
8.0.270.0070.00017.12
8.0.260.0000.00716.79
8.0.250.0070.00016.84
8.0.240.0050.00316.88
8.0.230.0000.00716.88
8.0.220.0000.00716.77
8.0.210.0030.00316.79
8.0.200.0000.00616.83
8.0.190.0040.00416.94
8.0.180.0040.00416.77
8.0.170.0020.00516.76
8.0.160.0000.00816.77
8.0.150.0030.00516.63
8.0.140.0040.00416.81
8.0.130.0000.00513.25
8.0.120.0050.00316.82
8.0.110.0000.00716.68
8.0.100.0050.00216.65
8.0.90.0040.00416.80
8.0.80.0100.01016.75
8.0.70.0070.00016.81
8.0.60.0030.00516.71
8.0.50.0000.00716.80
8.0.30.0120.00817.09
8.0.20.0130.00617.40
8.0.10.0000.00716.93
8.0.00.0040.01616.71
7.4.330.0030.00316.77
7.4.320.0030.00316.32
7.4.300.0000.00716.45
7.4.290.0000.00616.41
7.4.280.0000.00816.51
7.4.270.0070.00016.42
7.4.260.0030.00313.21
7.4.250.0040.00416.48
7.4.240.0040.00416.46
7.4.230.0000.00716.61
7.4.220.0100.00716.53
7.4.210.0080.00816.47
7.4.200.0000.00716.32
7.4.190.0030.00316.47
7.4.160.0120.00416.55
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0130.00516.50
7.4.120.0120.00516.38
7.4.110.0040.01316.39
7.4.100.0100.01016.54
7.4.90.0080.00816.44
7.4.80.0150.00419.39
7.4.70.0070.01016.43
7.4.60.0180.00416.62
7.4.50.0050.00516.31
7.4.40.0100.00622.77
7.4.30.0060.00916.23
7.4.00.0110.00314.64
7.3.330.0000.00613.21
7.3.320.0030.00313.09
7.3.310.0030.00316.26
7.3.300.0030.00316.23
7.3.290.0070.00716.28
7.3.280.0090.00716.24
7.3.270.0090.01117.40
7.3.260.0120.00418.24
7.3.250.0130.00516.38
7.3.240.0100.01016.36
7.3.230.0100.00716.41
7.3.210.0160.00316.52
7.3.200.0150.00319.39
7.3.190.0060.01016.35
7.3.180.0160.00616.31
7.3.170.0110.00516.46
7.3.160.0050.01116.29
7.3.120.0070.01114.82
7.2.330.0090.00916.73
7.2.320.0060.01316.74
7.2.310.0140.00916.77
7.2.300.0090.00916.41
7.2.290.0190.00016.72
7.2.00.0000.01419.54
7.1.100.0230.00617.23
7.1.70.0050.00216.76
7.1.60.0070.01419.17
7.1.50.0070.01716.99
7.1.00.0030.03322.46
7.0.200.0040.00416.88
7.0.140.0030.07322.07
7.0.100.0100.08021.73
7.0.90.0230.08019.92
7.0.80.0130.07019.90
7.0.70.0070.08019.98
7.0.60.0230.08719.93
7.0.50.0200.07320.25
7.0.40.0200.07720.08
7.0.30.0070.06020.18
7.0.20.0130.07320.19
7.0.10.0070.08020.07
7.0.00.0170.03720.02
5.6.280.0100.06721.11
5.6.250.0130.07720.76
5.6.240.0100.05320.75
5.6.230.0070.08320.53
5.6.220.0070.07020.58
5.6.210.0170.07020.74
5.6.200.0130.06721.02
5.6.190.0030.09021.17
5.6.180.0100.08321.16
5.6.170.0130.05721.04
5.6.160.0000.06320.93
5.6.150.0100.07320.96
5.6.140.0100.04321.09
5.6.130.0100.08321.08
5.6.120.0100.07721.07
5.6.110.0030.05321.01
5.6.100.0030.07720.98
5.6.90.0100.08021.03
5.6.80.0030.04720.46
5.6.70.0030.04020.54
5.6.60.0100.05720.47
5.6.50.0030.04020.43
5.6.40.0030.06320.49
5.6.30.0070.03320.52
5.6.20.0030.08020.41
5.6.10.0030.04020.28
5.6.00.0030.04020.38
5.5.380.0100.07720.40
5.5.370.0030.05720.36
5.5.360.0000.08720.48
5.5.350.0100.06020.38
5.5.340.0100.08320.78
5.5.330.0130.08020.88
5.5.320.0100.07720.88
5.5.310.0070.07720.92
5.5.300.0030.08320.92
5.5.290.0030.06020.72
5.5.280.0000.08720.82
5.5.270.0200.07320.87
5.5.260.0100.08020.78
5.5.250.0070.08320.69
5.5.240.0030.04720.21
5.5.230.0000.08320.29
5.5.220.0100.06020.00
5.5.210.0000.04320.01
5.5.200.0070.08020.11
5.5.190.0030.03720.25
5.5.180.0000.04020.10
5.5.160.0100.03320.12
5.5.150.0030.04020.17
5.5.140.0030.03720.25
5.5.130.0100.03020.07
5.5.120.0070.03720.14
5.5.110.0070.04020.22
5.5.100.0100.03319.97
5.5.90.0030.04320.11
5.5.80.0030.04019.97
5.5.70.0000.04720.13
5.5.60.0000.04020.15
5.5.50.0030.03720.04
5.5.40.0030.03720.05
5.5.30.0070.03319.98
5.5.20.0030.08319.91
5.5.10.0070.03720.08
5.5.00.0070.03720.02
5.4.450.0030.07719.47
5.4.440.0070.08019.44
5.4.430.0070.06719.30
5.4.420.0070.08019.42
5.4.410.0130.03719.25
5.4.400.0100.07719.05
5.4.390.0100.08019.23
5.4.380.0070.03318.79
5.4.370.0100.07019.06
5.4.360.0070.07319.03
5.4.350.0000.06018.94
5.4.340.0100.02718.98
5.4.320.0000.04019.04
5.4.310.0100.03019.02
5.4.300.0000.04018.94
5.4.290.0030.03719.05
5.4.280.0030.03719.12
5.4.270.0000.03719.03
5.4.260.0130.03019.12
5.4.250.0000.04318.99
5.4.240.0070.03719.13
5.4.230.0000.05719.02
5.4.220.0000.04018.94
5.4.210.0230.01719.07
5.4.200.0030.03719.03
5.4.190.0000.04719.13
5.4.180.0030.03718.77
5.4.170.0030.03719.22
5.4.160.0070.03018.96
5.4.150.0100.03019.12
5.4.140.0070.03016.30
5.4.130.0030.03316.36
5.4.120.0030.03016.36
5.4.110.0000.04016.26
5.4.100.0070.03016.22
5.4.90.0070.03016.40
5.4.80.0070.03016.32
5.4.70.0030.03716.41
5.4.60.0070.03316.38
5.4.50.0070.03316.35
5.4.40.0030.03716.41
5.4.30.0130.02716.41
5.4.20.0070.03316.31
5.4.10.0030.03316.18
5.4.00.0100.03315.84
5.3.290.0170.02714.64
5.3.280.0030.03314.44
5.3.270.0070.03314.44
5.3.260.0030.03714.56
5.3.250.0030.03714.46
5.3.240.0070.03314.58
5.3.230.0000.04014.41
5.3.220.0030.03714.55
5.3.210.0070.03314.42
5.3.200.0030.03314.47
5.3.190.0000.04714.51
5.3.180.0000.04014.37
5.3.170.0070.03314.52
5.3.160.0030.03714.47
5.3.150.0030.03714.55
5.3.140.0030.03714.46
5.3.130.0000.04314.45
5.3.120.0070.03314.38
5.3.110.0030.04014.53
5.3.100.0000.04313.89
5.3.90.0130.05013.92
5.3.80.0100.03013.99
5.3.70.0030.03713.77
5.3.60.0000.03714.01
5.3.50.0000.04313.88
5.3.40.0100.05713.79
5.3.30.0070.07013.76
5.3.20.0130.07013.64
5.3.10.0070.07313.64
5.3.00.0200.05713.41
5.2.170.0030.03311.54
5.2.160.0030.06311.54
5.2.150.0000.03311.54
5.2.140.0000.05311.54
5.2.130.0130.03311.54
5.2.120.0070.06311.54
5.2.110.0000.04311.54
5.2.100.0070.04311.54
5.2.90.0070.06011.54
5.2.80.0030.05311.54
5.2.70.0030.05711.54
5.2.60.0000.05311.54
5.2.50.0030.06711.54
5.2.40.0030.06311.54
5.2.30.0030.06311.54
5.2.20.0070.03011.54
5.2.10.0000.05011.54
5.2.00.0000.03311.54
5.1.60.0030.05711.54
5.1.50.0030.05311.54
5.1.40.0000.03311.54
5.1.30.0030.06011.54
5.1.20.0070.05711.54
5.1.10.0030.05711.54
5.1.00.0030.05711.54
5.0.50.0000.03011.54
5.0.40.0070.04011.54
5.0.30.0070.05711.54
5.0.20.0070.04011.54
5.0.10.0000.02011.54
5.0.00.0000.03711.54
4.4.90.0000.03711.54
4.4.80.0000.03311.54
4.4.70.0000.03711.54
4.4.60.0000.03711.54
4.4.50.0000.03711.54
4.4.40.0000.05711.54
4.4.30.0000.02011.54
4.4.20.0000.04011.54
4.4.10.0000.03011.54
4.4.00.0000.05311.54
4.3.110.0000.03711.54
4.3.100.0070.03311.54
4.3.90.0000.03311.54
4.3.80.0030.05011.54
4.3.70.0000.03311.54
4.3.60.0000.02311.54
4.3.50.0070.02711.54
4.3.40.0000.05011.54
4.3.30.0000.04011.54
4.3.20.0000.03311.54
4.3.10.0000.03011.54
4.3.00.0070.03011.54

preferences:
48.71 ms | 401 KiB | 5 Q