3v4l.org

run code in 300+ PHP versions simultaneously
<?php new class() { private $a = 1; public function __construct() { ${$_='this'} = 2; // ${'this'.''} = 2; var_dump($this, $this->a); } };

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.0120.00316.71
8.3.50.0110.00721.07
8.3.40.0000.01518.97
8.3.30.0100.01018.82
8.3.20.0040.00420.29
8.3.10.0040.00423.70
8.3.00.0040.00421.91
8.2.180.0040.01818.54
8.2.170.0110.00422.96
8.2.160.0030.01020.16
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0080.00026.35
8.2.110.0030.00620.94
8.2.100.0060.00617.91
8.2.90.0030.00519.64
8.2.80.0050.00220.50
8.2.70.0050.00317.93
8.2.60.0000.00718.16
8.2.50.0080.00318.10
8.2.40.0000.00719.17
8.2.30.0000.00719.30
8.2.20.0040.00417.63
8.2.10.0000.00718.20
8.2.00.0040.00417.99
8.1.280.0110.00325.92
8.1.270.0090.00622.10
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0070.01020.43
8.1.220.0040.00417.91
8.1.210.0080.00019.03
8.1.200.0030.00917.13
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0030.00618.64
8.1.160.0070.00020.76
8.1.150.0000.00719.04
8.1.140.0050.00319.61
8.1.130.0030.00817.70
8.1.120.0030.00317.35
8.1.110.0040.00417.52
8.1.100.0080.00017.49
8.1.90.0070.00017.43
8.1.80.0050.00317.46
8.1.70.0030.00317.42
8.1.60.0060.00317.47
8.1.50.0030.00617.42
8.1.40.0050.00317.52
8.1.30.0030.00517.65
8.1.20.0030.00517.67
8.1.10.0080.00017.61
8.1.00.0000.00717.50
8.0.300.0040.00420.16
8.0.290.0040.00416.88
8.0.280.0000.00718.51
8.0.270.0000.00717.31
8.0.260.0000.00617.25
8.0.250.0040.00417.04
8.0.240.0080.00017.00
8.0.230.0000.00716.94
8.0.220.0000.00817.01
8.0.210.0070.00016.92
8.0.200.0000.00617.00
8.0.190.0040.00417.02
8.0.180.0000.00716.98
8.0.170.0000.00716.96
8.0.160.0060.00317.04
8.0.150.0000.00716.79
8.0.140.0000.00716.92
8.0.130.0030.00313.41
8.0.120.0040.00416.81
8.0.110.0000.00716.81
8.0.100.0040.00416.85
8.0.90.0030.00517.01
8.0.80.0130.00316.84
8.0.70.0050.00316.85
8.0.60.0000.00716.93
8.0.50.0040.00416.93
8.0.30.0090.00717.07
8.0.20.0120.00817.40
8.0.10.0000.00716.94
8.0.00.0100.00816.95
7.4.330.0000.00616.79
7.4.320.0000.00716.50
7.4.300.0030.00316.51
7.4.290.0000.00716.50
7.4.280.0040.00416.46
7.4.270.0000.00716.48
7.4.260.0040.00416.57
7.4.250.0000.00716.57
7.4.240.0000.00716.40
7.4.230.0030.00316.35
7.4.220.0160.01016.60
7.4.210.0070.01016.59
7.4.200.0000.00716.43
7.4.160.0040.01116.54
7.4.150.0100.01317.40
7.4.140.0100.01217.86
7.4.130.0080.01016.49
7.4.120.0100.00716.62
7.4.110.0060.01816.41
7.4.100.0140.00716.52
7.4.90.0180.00616.50
7.4.80.0140.00419.39
7.4.70.0030.01216.40
7.4.60.0130.00316.50
7.4.50.0080.00516.17
7.4.40.0170.00016.51
7.4.30.0100.01216.50
7.4.00.0060.00914.89
7.3.330.0000.00613.34
7.3.320.0000.00513.36
7.3.310.0000.00616.36
7.3.300.0000.00716.41
7.3.290.0070.00016.38
7.3.280.0040.01116.34
7.3.270.0120.01517.40
7.3.260.0060.01116.57
7.3.250.0100.00716.47
7.3.240.0120.00516.42
7.3.230.0070.01616.39
7.3.210.0080.01116.47
7.3.200.0030.01519.39
7.3.190.0140.00716.39
7.3.180.0100.00916.44
7.3.170.0090.00916.58
7.3.160.0120.00316.46
7.3.120.0080.00814.57
7.3.110.0060.00914.73
7.3.100.0070.00714.84
7.3.90.0090.00615.02
7.3.80.0060.00614.99
7.3.70.0060.00914.73
7.3.60.0070.00714.98
7.3.50.0080.00314.49
7.3.40.0030.01315.03
7.3.30.0040.00814.92
7.3.20.0150.00016.61
7.3.10.0030.00716.61
7.3.00.0100.00316.71
7.2.330.0060.01416.46
7.2.320.0090.00916.59
7.2.310.0060.01216.47
7.2.300.0100.00916.70
7.2.290.0130.00316.43
7.2.240.0070.01015.01
7.2.230.0100.00715.09
7.2.220.0090.00315.29
7.2.210.0000.01615.21
7.2.200.0000.01415.15
7.2.190.0070.01015.12
7.2.180.0150.00315.05
7.2.170.0040.01415.05
7.2.160.0030.01414.89
7.2.150.0100.00616.84
7.2.140.0090.00916.91
7.2.130.0070.00316.96
7.2.120.0200.00716.84
7.2.110.0040.00816.89
7.2.100.0100.00716.64
7.2.90.0070.01016.65
7.2.80.0030.00916.91
7.2.70.0070.01017.00
7.2.60.0060.00716.97
7.2.50.0070.00316.95
7.2.40.0090.00616.65
7.2.30.0090.00917.09
7.2.20.0040.00717.02
7.2.10.0100.00616.89
7.2.00.0070.00917.86
7.1.330.0000.01215.68
7.1.320.0070.00715.57
7.1.310.0060.00815.47
7.1.300.0040.01215.71
7.1.290.0040.00715.37
7.1.280.0040.01215.45
7.1.270.0070.00315.41
7.1.260.0000.01415.56
7.1.250.0070.00715.74
7.1.200.0040.00915.76
7.1.100.0060.00918.14
7.1.70.0070.00417.17
7.1.60.0100.01319.40
7.1.50.0090.00316.91
7.1.00.0030.07322.30
7.0.200.0170.01014.86
7.0.60.0130.08321.87
7.0.50.0100.03717.82
7.0.40.0030.07020.13
7.0.30.0270.08320.25
7.0.20.0270.05720.24
7.0.10.0030.04320.23
7.0.00.0330.04020.16
5.6.280.0000.05320.89
5.6.210.0030.07020.56
5.6.200.0000.09318.22
5.6.190.0100.07720.45
5.6.180.0170.04020.64
5.6.170.0170.07020.47
5.6.160.0130.06020.39
5.6.150.0000.07718.22
5.6.140.0200.05318.17
5.6.130.0100.08318.19
5.6.120.0030.04320.99
5.6.110.0130.08720.98
5.6.100.0100.08720.97
5.6.90.0100.08020.99
5.6.80.0130.07020.53
5.5.350.0100.07720.40
5.5.340.0070.05318.09
5.5.330.0030.07720.13
5.5.320.0600.06720.28
5.5.310.0330.08020.38
5.5.300.0030.04018.08
5.5.290.0100.07717.98
5.5.280.0100.08320.75
5.5.270.0130.05320.76
5.5.260.0100.04320.94
5.5.250.0130.07320.61
5.5.240.0070.03720.14

preferences:
58.05 ms | 401 KiB | 5 Q