3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Set everything up $testArray = array( 'a' => array(), 'b' => array() ); $saved = array(); $ref =& $testArray['b']; // Set a value via the reference $ref = array(1); // Save the current array state $saved[] = $testArray; // This shouldn't be a reference, right? // Set another value via the reference $ref = array(2); // Save the current array state $saved[] = $testArray; // This shouldn't be a reference, right? var_dump($saved);

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.0170.00318.30
8.3.50.0100.00521.14
8.3.40.0110.01118.84
8.3.30.0080.01118.59
8.3.20.0040.00418.52
8.3.10.0040.00421.09
8.3.00.0040.00423.65
8.2.180.0130.00616.38
8.2.170.0140.00022.96
8.2.160.0060.00920.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.93
8.2.110.0060.00321.04
8.2.100.0030.00917.78
8.2.90.0080.00019.09
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0090.00019.82
8.2.30.0000.00717.98
8.2.20.0000.00717.71
8.2.10.0040.00417.69
8.2.00.0000.00717.80
8.1.280.0070.01025.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00021.06
8.1.230.0000.01218.93
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00916.88
8.1.180.0080.00018.10
8.1.170.0050.00318.34
8.1.160.0000.00718.86
8.1.150.0040.00418.57
8.1.140.0000.00717.38
8.1.130.0000.00717.83
8.1.120.0040.00417.29
8.1.110.0040.00417.28
8.1.100.0040.00417.41
8.1.90.0030.00517.43
8.1.80.0000.00717.36
8.1.70.0030.00317.23
8.1.60.0080.00017.51
8.1.50.0030.00517.39
8.1.40.0000.00817.35
8.1.30.0040.00417.40
8.1.20.0000.00817.54
8.1.10.0030.00617.41
8.1.00.0040.00417.23
8.0.300.0000.00820.30
8.0.290.0060.00316.75
8.0.280.0000.00718.25
8.0.270.0000.00717.19
8.0.260.0030.00316.61
8.0.250.0000.00716.89
8.0.240.0000.01016.91
8.0.230.0000.00716.81
8.0.220.0070.00316.72
8.0.210.0040.00416.80
8.0.200.0000.00616.86
8.0.190.0040.00416.87
8.0.180.0050.00316.88
8.0.170.0000.00816.86
8.0.160.0000.00716.71
8.0.150.0040.00416.72
8.0.140.0030.00516.78
8.0.130.0030.00313.23
8.0.120.0040.00416.83
8.0.110.0040.00316.70
8.0.100.0050.00216.78
8.0.90.0040.00416.69
8.0.80.0070.01416.79
8.0.70.0040.00416.71
8.0.60.0080.00016.79
8.0.50.0050.00216.70
8.0.30.0100.01016.92
8.0.20.0210.00317.40
8.0.10.0040.00416.88
8.0.00.0090.01116.63
7.4.330.0050.00016.67
7.4.320.0030.00316.44
7.4.300.0030.00316.50
7.4.290.0030.00316.33
7.4.280.0060.00016.35
7.4.270.0040.00416.53
7.4.260.0000.00513.16
7.4.250.0000.00816.38
7.4.240.0030.00316.41
7.4.230.0030.00316.32
7.4.220.0060.01316.54
7.4.210.0070.00916.39
7.4.200.0040.00416.33
7.4.190.0070.00016.34
7.4.160.0100.01316.36
7.4.150.0180.00717.40
7.4.140.0060.01117.86
7.4.130.0110.00616.33
7.4.120.0090.01016.48
7.4.110.0060.01216.37
7.4.100.0130.01016.54
7.4.90.0030.01616.52
7.4.80.0090.00919.39
7.4.70.0140.00716.40
7.4.60.0050.01116.38
7.4.50.0030.00616.42
7.4.40.0090.00922.77
7.4.30.0140.00716.61
7.4.00.0090.00915.10
7.3.330.0000.00613.17
7.3.320.0000.00513.05
7.3.310.0070.00016.25
7.3.300.0000.00716.27
7.3.290.0120.00616.25
7.3.280.0050.01116.30
7.3.270.0090.00917.40
7.3.260.0080.00918.24
7.3.250.0110.00616.32
7.3.240.0070.01016.21
7.3.230.0100.00716.46
7.3.210.0060.01416.25
7.3.200.0120.00619.39
7.3.190.0170.00516.36
7.3.180.0130.00316.60
7.3.170.0130.00316.27
7.3.160.0100.01016.20
7.3.120.0060.01014.73
7.2.330.0130.00416.50
7.2.320.0150.00616.54
7.2.310.0030.01416.31
7.2.300.0160.00016.20
7.2.290.0130.00316.21
7.2.60.0060.00916.35
7.2.00.0000.01419.10
7.1.200.0090.00615.86
7.1.100.0060.00818.20
7.1.70.0000.01017.23
7.1.60.0080.00317.22
7.1.50.0030.01416.64
7.1.00.0000.07722.48
7.0.200.0090.00616.79
7.0.140.0000.07721.95
7.0.70.4530.04719.78
7.0.60.0070.05719.92
7.0.50.0100.07717.89
7.0.40.0030.09019.89
7.0.30.0170.04720.21
7.0.20.0170.04720.12
7.0.10.0270.07720.19
7.0.00.0070.08320.08
5.6.280.0030.07321.14
5.6.210.0070.08320.59
5.6.200.0030.04018.20
5.6.190.0000.05020.48
5.6.180.0030.08320.75
5.6.170.0430.06720.51
5.6.160.0070.04020.38
5.6.150.0070.05718.13
5.6.140.0070.08718.15
5.6.130.0100.07718.22
5.6.120.0030.07320.98
5.6.110.0000.04320.98
5.6.100.0070.07321.10
5.6.90.0100.06720.96
5.6.80.0100.07720.37
5.6.70.0000.07720.35
5.5.350.0030.08020.29
5.5.340.0100.04717.96
5.5.330.0070.08720.56
5.5.320.0030.07720.21
5.5.310.0300.05020.12
5.5.300.0070.04017.91
5.5.290.0030.08717.96
5.5.280.0100.03320.71
5.5.270.0170.07020.79
5.5.260.0070.08320.88
5.5.250.0030.06320.58
5.5.240.0330.05320.15
5.4.450.0030.08019.13
5.4.440.0030.05719.40
5.4.430.0070.07019.46
5.4.420.0070.08319.24
5.4.410.0100.06719.27
5.4.400.0130.07319.09
5.4.390.0100.06319.18
5.4.380.0000.06319.13
5.4.370.0070.08019.09
5.4.360.0100.04719.08
5.4.350.0030.05719.18
5.4.340.0030.05019.11
5.4.320.0200.06719.08
5.4.310.0100.07319.14
5.4.300.0130.03719.17
5.4.290.0070.07319.20
5.4.280.0170.06318.80
5.4.270.0100.06319.17
5.4.260.0100.04019.15
5.4.250.0130.06018.92
5.4.240.0100.07718.91
5.4.230.0070.07019.13
5.4.220.0030.05719.13
5.4.210.0100.07719.00
5.4.200.0100.07319.00
5.4.190.0100.07319.07
5.4.180.0070.08018.79
5.4.170.0170.06718.90
5.4.160.0100.07319.15
5.4.150.0100.07319.06
5.4.140.0070.08016.25
5.4.130.0000.06716.26
5.4.120.0000.04016.37
5.4.110.0000.06716.36
5.4.100.0100.06016.41
5.4.90.0100.06716.39
5.4.80.0130.07016.27
5.4.70.0030.07316.22
5.4.60.0100.05716.28
5.4.50.0070.07716.12
5.4.40.0070.03716.30
5.4.30.0030.08016.25
5.4.20.0070.07316.37
5.4.10.0070.04016.21
5.4.00.0030.03315.73
5.3.290.0030.08014.54
5.3.280.0100.04714.47
5.3.270.0070.06314.54
5.3.260.0030.05014.50
5.3.250.0100.07714.39
5.3.240.0030.06014.55
5.3.230.0030.06714.54
5.3.220.0030.07014.49
5.3.210.0070.05314.49
5.3.200.0100.05314.46
5.3.190.0130.05014.54
5.3.180.0030.07714.51
5.3.170.0070.04714.53
5.3.160.0030.04714.49
5.3.150.0000.05314.50
5.3.140.0100.03314.52
5.3.130.0170.07014.48
5.3.120.0100.07014.48
5.3.110.0100.07314.47
5.3.100.0030.03713.82
5.3.90.0030.04013.98
5.3.80.0070.03313.95
5.3.70.0030.03713.84
5.3.60.0030.04013.84
5.3.50.0030.03713.76
5.3.40.0030.03714.03
5.3.30.0030.03313.89
5.3.20.0030.03313.63
5.3.10.0070.03013.59
5.3.00.0030.03713.57
5.2.170.0000.03011.14
5.2.160.0030.02711.00
5.2.150.0000.03711.02
5.2.140.0000.03311.07
5.2.130.0030.02710.99
5.2.120.0000.03311.07
5.2.110.0000.03011.02
5.2.100.0070.02311.11
5.2.90.0030.02711.09
5.2.80.0030.02710.92
5.2.70.0000.03010.97
5.2.60.0030.02710.95
5.2.50.0000.04710.85
5.2.40.0100.04710.84
5.2.30.0070.05710.87
5.2.20.0030.03310.92
5.2.10.0030.02710.81
5.2.00.0000.03010.70
5.1.60.0000.02710.01
5.1.50.0030.0279.94
5.1.40.0030.02710.03
5.1.30.0000.02710.36
5.1.20.0030.02310.38
5.1.10.0000.03310.08
5.1.00.0070.0209.90
5.0.50.0030.0178.38
5.0.40.0000.0208.39
5.0.30.0030.0308.23
5.0.20.0030.0178.34
5.0.10.0000.0208.15
5.0.00.0000.0308.09
4.4.90.0030.0207.59
4.4.80.0030.0207.59
4.4.70.0030.0137.59
4.4.60.0000.0177.59
4.4.50.0000.0177.59
4.4.40.0000.0277.59
4.4.30.0000.0177.59
4.4.20.0000.0177.59
4.4.10.0000.0177.59
4.4.00.0000.0277.59
4.3.110.0000.0177.59
4.3.100.0000.0137.59
4.3.90.0030.0137.59
4.3.80.0000.0237.59
4.3.70.0000.0137.59
4.3.60.0030.0137.59
4.3.50.0000.0137.59
4.3.40.0000.0237.59
4.3.30.0000.0137.59
4.3.20.0000.0137.59
4.3.10.0000.0137.59
4.3.00.0000.0137.59

preferences:
40.54 ms | 401 KiB | 5 Q