3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $a = 1; public function &getA() { return [ &$this->a ];; } } $a = new Test(); $b = &$a->getA(); $a->a = 2; var_dump($b);

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.0040.01118.98
8.3.30.0100.00320.31
8.3.20.0040.00420.12
8.3.10.0040.00421.96
8.3.00.0030.00622.40
8.2.170.0090.00622.96
8.2.160.0070.00720.20
8.2.150.0000.00924.18
8.2.140.0030.00624.66
8.2.130.0070.00726.16
8.2.120.0040.00419.54
8.2.110.0030.00622.10
8.2.100.0040.00817.91
8.2.90.0050.00317.61
8.2.80.0090.00018.98
8.2.70.0040.00417.93
8.2.60.0060.00318.05
8.2.50.0050.00318.10
8.2.40.0040.00420.42
8.2.30.0070.00017.99
8.2.20.0000.00817.59
8.2.10.0000.00817.63
8.2.00.0040.00417.55
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00620.64
8.1.230.0040.00719.14
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0080.00417.25
8.1.190.0080.00017.48
8.1.180.0080.00018.10
8.1.170.0090.00018.59
8.1.160.0030.00322.05
8.1.150.0020.00518.58
8.1.140.0040.00417.34
8.1.130.0030.00917.70
8.1.120.0000.00717.36
8.1.110.0030.00617.34
8.1.100.0000.00817.49
8.1.90.0040.00417.30
8.1.80.0000.00817.42
8.1.70.0030.00317.41
8.1.60.0030.00617.55
8.1.50.0070.00317.57
8.1.40.0080.00017.43
8.1.30.0040.00417.52
8.1.20.0030.00517.65
8.1.10.0000.00817.48
8.1.00.0000.00817.38
8.0.300.0080.00019.73
8.0.290.0080.00016.75
8.0.280.0030.00318.44
8.0.270.0030.00317.14
8.0.260.0060.00016.81
8.0.250.0000.00616.93
8.0.240.0060.00317.03
8.0.230.0060.00016.86
8.0.220.0080.00016.86
8.0.210.0000.00717.01
8.0.200.0030.00317.00
8.0.190.0000.00717.05
8.0.180.0000.00716.87
8.0.170.0040.00416.95
8.0.160.0040.00317.00
8.0.150.0040.00416.89
8.0.140.0040.00416.84
8.0.130.0000.00613.34
8.0.120.0030.00516.86
8.0.110.0050.00316.93
8.0.100.0000.00816.98
8.0.90.0030.00516.75
8.0.80.0070.01016.99
8.0.70.0060.00316.97
8.0.60.0040.00416.86
8.0.50.0000.00716.85
8.0.30.0060.01417.12
8.0.20.0050.01517.40
8.0.10.0040.00417.04
8.0.00.0090.01016.80
7.4.330.0020.00215.00
7.4.320.0030.00316.55
7.4.300.0000.00616.58
7.4.290.0030.00316.49
7.4.280.0040.00416.54
7.4.270.0030.00316.50
7.4.260.0070.00016.48
7.4.250.0040.00416.55
7.4.240.0020.00516.58
7.4.230.0000.00716.70
7.4.220.0120.00916.71
7.4.210.0060.01016.60
7.4.200.0070.00016.63
7.4.190.0000.00716.59
7.4.160.0000.01616.48
7.4.150.0130.00317.40
7.4.140.0080.01417.86
7.4.130.0120.00516.60
7.4.120.0090.01016.67
7.4.110.0090.00916.54
7.4.100.0130.00616.57
7.4.90.0060.00916.57
7.4.80.0000.01719.39
7.4.70.0110.00616.73
7.4.60.0130.00316.73
7.4.50.0060.00316.34
7.4.40.0030.01022.77
7.4.30.0100.00616.42
7.4.00.0130.00515.05
7.3.330.0030.00313.18
7.3.320.0020.00213.21
7.3.310.0000.00716.41
7.3.300.0000.00616.41
7.3.290.0150.00616.27
7.3.280.0080.01016.35
7.3.270.0040.01317.40
7.3.260.0190.00316.56
7.3.250.0100.00816.28
7.3.240.0140.00316.38
7.3.230.0060.01216.53
7.3.210.0070.01016.29
7.3.200.0120.00919.39
7.3.190.0070.01116.47
7.3.180.0040.01216.29
7.3.170.0060.00916.50
7.3.160.0060.01516.54
7.3.120.0040.01214.92
7.3.110.0040.01114.61
7.3.100.0030.01114.93
7.3.90.0000.00814.68
7.3.80.0100.00314.70
7.3.70.0070.01014.91
7.3.60.0080.00514.68
7.3.50.0070.00314.85
7.3.40.0040.00714.70
7.3.30.0030.01014.64
7.3.20.0070.00716.73
7.3.10.0080.00816.47
7.3.00.0040.00716.61
7.2.330.0090.00816.79
7.2.320.0110.00716.63
7.2.310.0060.01516.61
7.2.300.0110.00616.40
7.2.290.0040.01216.43
7.2.250.0060.01015.06
7.2.240.0170.00315.11
7.2.230.0100.00314.92
7.2.220.0040.00714.66
7.2.210.0040.01114.84
7.2.200.0060.01215.04
7.2.190.0070.00714.94
7.2.180.0000.01414.57
7.2.170.0110.00315.03
7.2.60.0070.00716.67
7.2.00.0040.01119.49
7.1.330.0120.00315.59
7.1.320.0070.00715.65
7.1.310.0030.00615.88
7.1.300.0000.01015.76
7.1.290.0110.00415.77
7.1.280.0110.00315.67
7.1.270.0030.00915.71
7.1.260.0040.00715.57
7.1.200.0090.00315.66
7.1.70.0000.00817.20
7.1.60.0080.00316.89
7.1.50.0130.00916.84
7.1.00.0100.07022.33
7.0.200.0070.01116.72
7.0.140.0030.07322.15
7.0.60.0070.08319.92
7.0.50.0100.08317.95
7.0.40.0100.06320.13
7.0.30.0200.03720.09
7.0.20.0270.04320.24
7.0.10.0070.08320.19
7.0.00.0130.06020.04
5.6.280.0170.05721.07
5.6.210.0000.08720.63
5.6.200.0030.04018.22
5.6.190.0070.04020.67
5.6.180.0070.08720.48
5.6.170.0270.08020.54
5.6.160.0100.07020.54
5.6.150.0030.08718.11
5.6.140.0100.07718.24
5.6.130.0100.06018.15
5.6.120.0030.09021.05
5.6.110.0100.08021.00
5.6.100.0070.08020.93
5.6.90.0070.07020.99
5.6.80.0070.04720.51
5.5.350.0070.08020.39
5.5.340.0170.05717.98
5.5.330.0000.04720.57
5.5.320.0270.07320.42
5.5.310.0270.07320.34
5.5.300.0070.08018.01
5.5.290.0130.07318.00
5.5.280.0100.08320.80
5.5.270.0100.08320.79
5.5.260.0130.07320.84
5.5.250.0070.07020.47
5.5.240.0300.07720.23
5.4.450.0600.04019.20
5.4.440.0330.04319.50
5.4.430.0570.04019.57
5.4.420.0130.05019.41
5.4.410.0130.05019.42
5.4.400.0200.04319.34
5.4.390.0200.04319.04
5.4.380.0170.05319.16
5.4.370.0100.05319.16
5.4.360.0130.05019.12
5.4.350.0080.04212.02
5.4.340.0090.05412.02
5.4.320.0050.03812.50
5.4.310.0070.03712.50
5.4.300.0070.03712.50
5.4.290.0070.03712.50
5.4.280.0050.03912.39
5.4.270.0090.03112.39
5.4.260.0050.03812.40
5.4.250.0030.05718.76
5.4.240.0030.05318.66
5.4.230.0030.05318.90
5.4.220.0030.05718.93
5.4.210.0030.05318.94
5.4.200.0070.06018.93
5.4.190.0100.04718.97
5.4.180.0030.07318.91
5.4.170.0170.04018.94
5.4.160.0070.05018.64
5.4.150.0030.05718.86
5.4.140.0070.06016.57
5.4.130.0070.04716.31
5.4.120.0100.04316.31
5.4.110.0070.07016.50
5.4.100.0130.04016.36
5.4.90.0170.04716.55
5.4.80.0100.05016.34
5.4.70.0100.05316.47
5.4.60.0070.05716.32
5.4.50.0070.06316.30
5.4.40.0030.04716.61
5.4.30.0130.06316.27
5.4.20.0070.04716.43
5.4.10.0130.05016.40
5.4.00.0000.06315.88
5.3.290.0080.03912.80
5.3.280.0070.05014.76
5.3.270.0100.05314.78
5.3.260.0070.07714.68
5.3.250.0130.04014.61
5.3.240.0100.04714.57
5.3.230.0030.06014.59
5.3.220.0030.07314.64
5.3.210.0100.06014.65
5.3.200.0100.06314.65
5.3.190.0100.05014.74
5.3.180.0070.05014.63
5.3.170.0030.05314.58
5.3.160.0070.04714.55
5.3.150.0030.05714.68
5.3.140.0030.05014.55
5.3.130.0070.05014.57
5.3.120.0030.05314.76
5.3.110.0100.04714.72
5.3.100.0100.04714.03
5.3.90.0030.05014.10
5.3.80.0000.05314.09
5.3.70.0030.05314.01
5.3.60.0130.04313.98
5.3.50.0000.05014.03
5.3.40.0100.05013.94
5.3.30.0000.06713.89
5.3.20.0030.04713.69
5.3.10.0030.07013.63
5.3.00.0000.05313.70
5.2.170.0070.03711.21
5.2.160.0030.04011.36
5.2.150.0070.04011.23
5.2.140.0000.04311.11
5.2.130.0070.03711.25
5.2.120.0030.03711.25
5.2.110.0000.04011.25
5.2.100.0000.04011.17
5.2.90.0000.04011.27
5.2.80.0030.04011.07
5.2.70.0070.05710.92
5.2.60.0030.04311.11
5.2.50.0000.05011.17
5.2.40.0100.04711.08
5.2.30.0030.05310.87
5.2.20.0070.04011.02
5.2.10.0070.04310.93
5.2.00.0070.04010.86
5.1.60.0070.0479.96
5.1.50.0070.0309.83
5.1.40.0100.0339.81
5.1.30.0000.05310.48
5.1.20.0030.04010.43
5.1.10.0030.03710.07
5.1.00.0000.05710.00
5.0.50.0000.0378.68
5.0.40.0000.0378.68
5.0.30.0000.0578.68
5.0.20.0030.0278.68
5.0.10.0100.0278.68
5.0.00.0030.0378.68
4.4.90.0030.0208.68
4.4.80.0030.0208.68
4.4.70.0030.0208.68
4.4.60.0000.0278.68
4.4.50.0000.0308.68
4.4.40.0070.0338.68
4.4.30.0000.0278.68
4.4.20.0030.0278.68
4.4.10.0030.0208.68
4.4.00.0030.0338.68
4.3.110.0030.0208.68
4.3.100.0030.0278.68
4.3.90.0030.0238.68
4.3.80.0000.0338.68
4.3.70.0030.0208.68
4.3.60.0000.0208.68
4.3.50.0070.0178.68
4.3.40.0070.0278.68
4.3.30.0000.0278.68
4.3.20.0030.0208.68
4.3.10.0000.0238.68
4.3.00.0030.01714.48

preferences:
41.53 ms | 400 KiB | 5 Q