3v4l.org

run code in 300+ PHP versions simultaneously
<?php class reftest { public $a = 1; public $c = 1; public function reftest() { $b =& $this->a; $b++; } public function reftest2() { $d =& $this->c; $d++; } } $reference = new reftest(); $reference->reftest(); $reference->reftest2(); echo $reference->a; //Echoes 3. echo $reference->c; //Echoes 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.0090.01218.27
8.3.50.0100.00821.09
8.3.40.0110.00318.72
8.3.30.0030.01020.16
8.3.20.0140.00420.24
8.3.10.0070.00021.95
8.3.00.0030.00522.39
8.2.180.0140.00716.88
8.2.170.0150.00022.96
8.2.160.0100.00320.53
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00720.47
8.2.110.0030.00622.14
8.2.100.0040.00717.78
8.2.90.0060.00319.05
8.2.80.0070.00019.39
8.2.70.0000.00917.38
8.2.60.0060.00617.89
8.2.50.0090.00018.07
8.2.40.0030.00518.21
8.2.30.0030.00519.45
8.2.20.0040.00417.77
8.2.10.0040.00417.77
8.2.00.0000.00717.68
8.1.280.0150.00925.92
8.1.270.0040.00420.29
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.97
8.1.230.0120.00019.14
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0000.00917.22
8.1.190.0000.00717.40
8.1.180.0080.00018.10
8.1.170.0080.00018.46
8.1.160.0040.00418.84
8.1.150.0050.00318.62
8.1.140.0030.00517.30
8.1.130.0050.00317.75
8.1.120.0040.00417.30
8.1.110.0060.00317.38
8.1.100.0000.00717.43
8.1.90.0040.00417.42
8.1.80.0000.00717.25
8.1.70.0030.00317.39
8.1.60.0030.00617.63
8.1.50.0000.00817.50
8.1.40.0000.00717.58
8.1.30.0040.00417.66
8.1.20.0000.00817.70
8.1.10.0030.00617.61
8.1.00.0000.00817.45
8.0.300.0050.00218.77
8.0.290.0030.00316.93
8.0.280.0080.00018.50
8.0.270.0000.00717.26
8.0.260.0000.00616.76
8.0.250.0030.00316.98
8.0.240.0040.00416.87
8.0.230.0030.00316.88
8.0.220.0030.00316.73
8.0.210.0050.00216.91
8.0.200.0000.00716.88
8.0.190.0050.00216.94
8.0.180.0080.00016.84
8.0.170.0000.00816.78
8.0.160.0040.00416.74
8.0.150.0030.00616.73
8.0.140.0070.00016.80
8.0.130.0050.00013.30
8.0.120.0020.00516.71
8.0.110.0020.00516.65
8.0.100.0000.00816.82
8.0.90.0040.00416.86
8.0.80.0070.01016.84
8.0.70.0040.00416.63
8.0.60.0080.00016.66
8.0.50.0000.00816.95
8.0.30.0120.00717.30
8.0.20.0130.00817.40
8.0.10.0070.00016.88
8.0.00.0100.00916.69
7.4.330.0020.00216.77
7.4.320.0030.00316.41
7.4.300.0030.00316.66
7.4.290.0000.00716.59
7.4.280.0040.00416.51
7.4.270.0000.00716.43
7.4.260.0000.00513.23
7.4.250.0000.00716.59
7.4.240.0020.00516.53
7.4.230.0000.00716.48
7.4.220.0080.00816.64
7.4.210.0030.01216.66
7.4.200.0040.00416.61
7.4.190.0040.00416.55
7.4.160.0000.01616.34
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0120.00716.64
7.4.120.0130.00416.45
7.4.110.0060.01016.58
7.4.100.0070.01016.46
7.4.90.0180.00616.45
7.4.80.0070.01019.39
7.4.70.0060.01116.58
7.4.60.0060.01416.52
7.4.50.0050.00316.20
7.4.40.0040.01422.77
7.4.30.0120.00316.61
7.4.00.0030.01315.07
7.3.330.0000.00513.36
7.3.320.0000.00513.12
7.3.310.0030.00316.21
7.3.300.0000.00716.22
7.3.290.0070.00716.37
7.3.280.0100.00616.34
7.3.270.0100.00717.40
7.3.260.0100.01416.54
7.3.250.0080.00816.55
7.3.240.0070.01016.35
7.3.230.0160.00616.39
7.3.210.0090.00616.38
7.3.200.0150.00819.39
7.3.190.0160.00616.49
7.3.180.0000.01716.61
7.3.170.0060.00916.57
7.3.160.0030.01316.26
7.3.120.0000.01414.81
7.2.330.0080.01216.79
7.2.320.0100.01016.77
7.2.310.0030.01616.44
7.2.300.0030.01616.63
7.2.290.0090.00616.58
7.2.60.0030.01016.89
7.2.00.0030.00719.64
7.1.200.0100.00315.82
7.1.100.0100.01018.06
7.1.70.0000.00917.16
7.1.60.0000.02019.17
7.1.50.0090.00616.80
7.1.00.0070.06022.33
7.0.200.0030.00814.90
7.0.140.0030.06721.95
7.0.100.0070.08719.95
7.0.90.0100.08720.13
7.0.80.0100.08319.96
7.0.70.0070.05319.93
7.0.60.0100.07719.94
7.0.50.0100.08320.34
7.0.40.0100.08020.00
7.0.30.0070.07020.05
7.0.20.0070.08320.04
7.0.10.0070.08720.04
7.0.00.0130.07720.00
5.6.250.0030.09020.53
5.6.240.0130.07720.75
5.6.230.0030.09020.48
5.6.220.0200.06320.59
5.6.210.0130.07320.68
5.6.200.0070.08721.07
5.6.190.0030.08720.94
5.6.180.0170.08021.03
5.6.170.0170.07721.02
5.6.160.0100.04721.10
5.6.150.0070.07721.18
5.6.140.0070.04020.97
5.6.130.0130.07320.96
5.6.120.0200.06321.18
5.6.110.0070.08320.96
5.6.100.0100.07721.04
5.6.90.0030.08020.94
5.6.80.0000.08020.33
5.6.70.0070.05020.49
5.6.60.0230.06320.41
5.6.50.0070.07320.47
5.6.40.0100.07020.47
5.6.30.0100.07320.33
5.6.20.0030.08020.25
5.6.10.0100.06720.50
5.6.00.0000.06020.42
5.5.380.0200.07020.56
5.5.370.0100.07720.45
5.5.360.0000.06720.37
5.5.350.0070.09020.36
5.5.340.0030.06720.95
5.5.330.0100.07720.94
5.5.320.0030.08320.80
5.5.310.0100.07720.84
5.5.300.0100.07720.81
5.5.290.0030.08020.64
5.5.280.0030.08320.80
5.5.270.0170.07020.89
5.5.260.0070.07020.87
5.5.250.0030.08320.73
5.5.240.0070.08020.17
5.5.230.0070.06320.21
5.5.220.0130.07720.14
5.5.210.0100.07720.17
5.5.200.0100.05720.27
5.5.190.0070.04720.23
5.5.180.0030.09020.29
5.5.160.0100.07320.26
5.5.150.0030.08320.24
5.5.140.0100.07720.26
5.5.130.0100.07720.29
5.5.120.0170.07020.16
5.5.110.0070.08020.11
5.5.100.0170.07020.02
5.5.90.0100.07020.01
5.5.80.0070.05320.04
5.5.70.0130.07320.16
5.5.60.0100.04720.02
5.5.50.0030.05720.05
5.5.40.0030.08720.05
5.5.30.0000.08720.14
5.5.20.0030.04320.09
5.5.10.0270.06320.12
5.5.00.0170.06720.09
5.4.450.0130.06019.51
5.4.440.0130.04319.54
5.4.430.0000.08319.27
5.4.420.0030.05319.37
5.4.410.0100.07019.36
5.4.400.0030.07319.14
5.4.390.0100.07018.91
5.4.380.0070.07719.04
5.4.370.0100.06719.04
5.4.360.0130.07018.90
5.4.350.0130.04018.85
5.4.340.0070.08019.05
5.4.320.0070.07719.19
5.4.310.0030.08019.09
5.4.300.0100.07319.02
5.4.290.0100.07719.04
5.4.280.0130.07019.14
5.4.270.0100.07319.13
5.4.260.0030.08018.94
5.4.250.0070.07019.18
5.4.240.0070.07719.12
5.4.230.0130.06719.13
5.4.220.0070.03719.13
5.4.210.0130.07019.00
5.4.200.0100.07318.89
5.4.190.0070.07719.11
5.4.180.0100.07019.02
5.4.170.0030.06319.02
5.4.160.0100.06319.02
5.4.150.0030.07719.10
5.4.140.0070.04716.34
5.4.130.0030.07316.41
5.4.120.0030.05316.35
5.4.110.0000.06316.47
5.4.100.0070.03716.47
5.4.90.0070.07016.49
5.4.80.0130.06316.33
5.4.70.0130.04016.45
5.4.60.0100.07016.47
5.4.50.0070.07316.30
5.4.40.0030.07716.52
5.4.30.0030.07316.33
5.4.20.0030.07716.39
5.4.10.0070.07716.47
5.4.00.0070.07715.70
5.3.290.0170.07014.73
5.3.280.0130.07014.58
5.3.270.0070.07314.66
5.3.260.0130.07014.66
5.3.250.0000.07714.73
5.3.240.0070.07714.66
5.3.230.0070.07314.61
5.3.220.0070.07314.58
5.3.210.0030.06314.55
5.3.200.0030.08014.59
5.3.190.0100.07314.60
5.3.180.0070.08014.54
5.3.170.0030.07714.70
5.3.160.0170.06714.55
5.3.150.0030.06314.71
5.3.140.0070.07314.53
5.3.130.0070.07014.59
5.3.120.0030.08014.58
5.3.110.0030.08014.62
5.3.100.0070.07714.28
5.3.90.0070.07314.28
5.3.80.0030.08014.28
5.3.70.0030.06714.28
5.3.60.0130.07014.28
5.3.50.0130.06714.28
5.3.40.0000.08014.28
5.3.30.0070.07014.28
5.3.20.0030.05014.28
5.3.10.0130.06714.28
5.3.00.0100.06314.28
5.2.170.0130.02714.28
5.2.160.0100.05014.28
5.2.150.0030.06314.28
5.2.140.0100.04014.28
5.2.130.0100.05714.28
5.2.120.0100.04014.28
5.2.110.0070.05714.28
5.2.100.0070.06014.28
5.2.90.0000.05314.28
5.2.80.0000.06314.28
5.2.70.0070.03314.28
5.2.60.0070.06014.28
5.2.50.0070.05314.28
5.2.40.0030.06314.28
5.2.30.0030.06314.28
5.2.20.0070.05014.28
5.2.10.0100.05714.28
5.2.00.0030.06314.28
5.1.60.0100.05014.28
5.1.50.0030.05714.28
5.1.40.0170.03714.28
5.1.30.0000.03714.28
5.1.20.0000.05014.28
5.1.10.0030.03314.28
5.1.00.0000.06014.28
5.0.50.0030.04314.28
5.0.40.0030.04714.28
5.0.30.0030.06714.28
5.0.20.0000.04714.28
5.0.10.0030.04714.28
5.0.00.0070.05714.28
4.4.90.0070.03314.28
4.4.80.0070.02714.28
4.4.70.0000.03014.28
4.4.60.0030.03714.28
4.4.50.0000.03714.28
4.4.40.0070.03714.28
4.4.30.0070.03314.28
4.4.20.0070.02714.28
4.4.10.0030.03314.28
4.4.00.0030.04314.28
4.3.110.0000.04014.28
4.3.100.0100.02714.28
4.3.90.0000.02314.28
4.3.80.0000.03014.28
4.3.70.0000.03714.28
4.3.60.0070.02714.28
4.3.50.0000.03714.28
4.3.40.0070.04714.28
4.3.30.0030.03314.28
4.3.20.0000.03714.28
4.3.10.0070.03014.28
4.3.00.0000.04014.28

preferences:
46.97 ms | 401 KiB | 5 Q