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, $this->a()); } function 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.0110.00416.63
8.3.50.0090.01221.28
8.3.40.0110.00418.96
8.3.30.0130.00318.80
8.3.20.0080.00020.25
8.3.10.0000.00821.85
8.3.00.0050.00323.66
8.2.180.0090.00618.29
8.2.170.0120.00622.96
8.2.160.0100.00720.27
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.13
8.2.120.0040.00426.35
8.2.110.0100.00021.11
8.2.100.0040.00818.03
8.2.90.0080.00019.15
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0000.00817.80
8.2.50.0030.00518.09
8.2.40.0030.00522.15
8.2.30.0040.00419.42
8.2.20.0050.00217.68
8.2.10.0030.00618.11
8.2.00.0050.00318.16
8.1.280.0040.01825.92
8.1.270.0160.00322.19
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0070.00322.52
8.1.230.0110.00019.10
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0050.00317.11
8.1.180.0080.00018.10
8.1.170.0040.00418.71
8.1.160.0070.00020.71
8.1.150.0030.00318.91
8.1.140.0040.00419.48
8.1.130.0030.00717.73
8.1.120.0070.00017.45
8.1.110.0000.00817.46
8.1.100.0040.00417.48
8.1.90.0050.00217.45
8.1.80.0050.00317.48
8.1.70.0030.00317.46
8.1.60.0040.00417.54
8.1.50.0000.00817.41
8.1.40.0000.00817.41
8.1.30.0050.00317.65
8.1.20.0000.00817.71
8.1.10.0020.00517.42
8.1.00.0040.00417.50
8.0.300.0020.00518.77
8.0.290.0040.00416.88
8.0.280.0030.00318.45
8.0.270.0000.00717.32
8.0.260.0030.00317.29
8.0.250.0070.00016.87
8.0.240.0040.00416.89
8.0.230.0020.00517.02
8.0.220.0000.00716.81
8.0.210.0030.00616.84
8.0.200.0000.00616.99
8.0.190.0090.00017.00
8.0.180.0000.00716.89
8.0.170.0030.00516.90
8.0.160.0030.00316.96
8.0.150.0040.00416.91
8.0.140.0000.00716.82
8.0.130.0060.00013.37
8.0.120.0000.00716.93
8.0.110.0030.00516.79
8.0.100.0050.00316.95
8.0.90.0000.00817.01
8.0.80.0040.01116.99
8.0.70.0040.00416.79
8.0.60.0040.00417.01
8.0.50.0050.00216.72
8.0.30.0060.01216.92
8.0.20.0130.00717.40
8.0.10.0040.00416.95
8.0.00.0090.01116.63
7.4.330.0050.00016.67
7.4.320.0000.00616.44
7.4.300.0030.00516.59
7.4.290.0050.00216.48
7.4.280.0050.00216.56
7.4.270.0060.00016.50
7.4.260.0070.00016.57
7.4.250.0000.00716.55
7.4.240.0030.00516.46
7.4.230.0070.00016.48
7.4.220.0090.01316.39
7.4.210.0060.00916.55
7.4.200.0000.00716.39
7.4.160.0090.00616.38
7.4.150.0060.01217.40
7.4.140.0140.00817.86
7.4.130.0070.01116.58
7.4.120.0090.01016.65
7.4.110.0070.01016.43
7.4.100.0070.01616.43
7.4.90.0130.00316.43
7.4.80.0000.01619.39
7.4.70.0130.00316.45
7.4.60.0140.00316.55
7.4.50.0070.00716.33
7.4.40.0110.01116.53
7.4.30.0150.01116.58
7.4.00.0090.01014.88
7.3.330.0060.00013.14
7.3.320.0000.00613.36
7.3.310.0040.00416.18
7.3.300.0030.00316.41
7.3.290.0050.00216.33
7.3.280.0090.00916.32
7.3.270.0110.00517.40
7.3.260.0170.00616.34
7.3.250.0100.00716.47
7.3.240.0090.00816.41
7.3.230.0190.00416.58
7.3.210.0070.01016.48
7.3.200.0090.01219.39
7.3.190.0140.00716.57
7.3.180.0090.00616.38
7.3.170.0090.00916.38
7.3.160.0070.01316.28
7.3.120.0030.01514.77
7.3.110.0070.01214.86
7.3.100.0060.01014.83
7.3.90.0110.00614.75
7.3.80.0080.00514.74
7.3.70.0070.00414.72
7.3.60.0040.00914.74
7.3.50.0050.00914.60
7.3.40.0050.00814.81
7.3.30.0020.01214.58
7.3.20.0060.00916.81
7.3.10.0060.00716.75
7.3.00.0050.01216.58
7.2.330.0100.00716.59
7.2.320.0120.00616.63
7.2.310.0100.00816.64
7.2.300.0070.01016.54
7.2.290.0070.01016.27
7.2.250.0080.00815.04
7.2.240.0030.01414.82
7.2.230.0090.00814.75
7.2.220.0090.00214.88
7.2.210.0050.00815.06
7.2.200.0050.01114.84
7.2.190.0090.00514.96
7.2.180.0030.01014.89
7.2.170.0060.00814.82
7.2.60.0040.01116.56
7.2.00.0120.00419.39
7.1.330.0080.00615.64
7.1.320.0040.00515.60
7.1.310.0020.01515.77
7.1.300.0030.01015.46
7.1.290.0050.00815.77
7.1.280.0070.00815.61
7.1.270.0090.00515.69
7.1.260.0050.00615.63
7.1.200.0060.00615.51
7.1.100.0030.00718.00
7.1.70.0030.00617.13
7.1.60.0070.01419.40
7.1.50.0100.01016.80
7.1.00.0000.08022.54
7.0.200.0090.00614.59
7.0.60.0230.04721.78
7.0.50.0070.04017.72
7.0.40.0030.04720.24
7.0.30.0200.04720.11
7.0.20.0270.05320.23
7.0.10.0000.04720.07
7.0.00.0030.09020.08
5.6.280.0070.05721.09
5.6.210.0070.07320.64
5.6.200.0170.07318.22
5.6.190.0070.08320.77
5.6.180.0270.06720.47
5.6.170.0270.08020.61
5.6.160.0030.07720.57
5.6.150.0100.06318.15
5.6.140.0100.04018.14
5.6.130.0030.07318.18
5.6.120.0070.04320.99
5.6.110.0130.05320.98
5.6.100.0000.09020.99
5.6.90.0170.08021.10
5.6.80.0100.08320.38
5.5.350.0070.06320.52
5.5.340.0070.08318.09
5.5.330.0100.06720.41
5.5.320.0200.08320.30
5.5.310.0200.05320.27
5.5.300.0070.04317.98
5.5.290.0130.03717.92
5.5.280.0030.04320.87
5.5.270.0070.04320.74
5.5.260.0070.08720.86
5.5.250.0070.05720.54
5.5.240.0200.07320.25

preferences:
54.78 ms | 401 KiB | 5 Q