3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class C { private $s; public function __construct($s) { $this->s = $s; } protected function getS() { return $this->s; } } class C1 extends C { public function __get($name) { $value = 'wanted:'.$name; $this->$name = $value.',got it again'; return $value; } public function __construct($s1) { parent::__construct($s1); } function doStuff() { echo $this->getS()."\n"; echo $this->s."\n"; echo $this->s."\n"; } } $c1 = new C1('foo'); $c1->doStuff();

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.0040.01116.88
8.3.50.0080.01021.99
8.3.40.0110.00718.84
8.3.30.0040.01118.80
8.3.20.0000.00720.30
8.3.10.0040.00423.43
8.3.00.0000.00819.38
8.2.180.0100.00718.41
8.2.170.0090.00622.96
8.2.160.0070.00720.57
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00320.56
8.2.120.0040.00426.35
8.2.110.0030.00620.52
8.2.100.0090.00317.93
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0090.00021.13
8.2.30.0040.00420.49
8.2.20.0020.00517.74
8.2.10.0040.00417.99
8.2.00.0030.00517.97
8.1.280.0070.00725.92
8.1.270.0090.00623.79
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0120.00017.66
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0060.00317.57
8.1.180.0030.00518.10
8.1.170.0000.00818.37
8.1.160.0000.00822.07
8.1.150.0040.00418.79
8.1.140.0060.00319.57
8.1.130.0050.00317.61
8.1.120.0040.00417.37
8.1.110.0030.00617.36
8.1.100.0020.00517.39
8.1.90.0070.00017.37
8.1.80.0000.00817.36
8.1.70.0000.00717.40
8.1.60.0000.01117.57
8.1.50.0040.00417.48
8.1.40.0060.00317.55
8.1.30.0040.00417.63
8.1.20.0000.00717.55
8.1.10.0020.00517.51
8.1.00.0000.00917.49
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0050.00217.13
8.0.260.0040.00417.17
8.0.250.0030.00316.96
8.0.240.0040.00416.99
8.0.230.0030.00316.86
8.0.220.0000.00816.77
8.0.210.0070.00016.81
8.0.200.0000.00616.92
8.0.190.0070.00016.85
8.0.180.0040.00416.89
8.0.170.0050.00216.88
8.0.160.0000.00716.92
8.0.150.0030.00516.72
8.0.140.0040.00416.86
8.0.130.0030.00313.38
8.0.120.0040.00416.80
8.0.110.0000.00816.71
8.0.100.0070.00016.75
8.0.90.0070.00016.88
8.0.80.0130.00716.86
8.0.70.0000.00816.73
8.0.60.0040.00416.78
8.0.50.0000.00816.77
8.0.30.0090.00816.98
8.0.20.0170.00917.40
8.0.10.0050.00316.89
8.0.00.0110.00716.81
7.4.330.0000.00516.81
7.4.320.0030.00316.42
7.4.300.0030.00316.51
7.4.290.0040.00416.63
7.4.280.0030.00616.48
7.4.270.0030.00316.52
7.4.260.0000.00716.49
7.4.250.0000.00716.41
7.4.240.0040.00316.55
7.4.230.0030.00316.39
7.4.220.0130.00616.63
7.4.210.0100.00416.60
7.4.200.0070.00016.34
7.4.160.0170.00316.52
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0080.01116.58
7.4.120.0090.00916.50
7.4.110.0090.00916.46
7.4.100.0090.01316.47
7.4.90.0120.00916.52
7.4.80.0100.00719.39
7.4.70.0120.00616.57
7.4.60.0090.00616.68
7.4.50.0040.01216.54
7.4.40.0090.00916.59
7.4.30.0090.01316.63
7.4.00.0050.01215.03
7.3.330.0030.00613.14
7.3.320.0030.00313.22
7.3.310.0030.00316.24
7.3.300.0030.00316.23
7.3.290.0090.00816.34
7.3.280.0110.00616.34
7.3.270.0140.00417.40
7.3.260.0070.01116.54
7.3.250.0130.00816.55
7.3.240.0090.00916.46
7.3.230.0030.01416.50
7.3.210.0160.00016.47
7.3.200.0200.00016.63
7.3.190.0130.00416.59
7.3.180.0130.00516.55
7.3.170.0130.00716.43
7.3.160.0110.00616.38
7.3.120.0030.01615.06
7.3.110.0090.00714.58
7.3.100.0080.00415.07
7.3.90.0090.00914.80
7.3.80.0030.01014.81
7.3.70.0030.01214.83
7.3.60.0060.00614.95
7.3.50.0000.01514.92
7.3.40.0100.00314.88
7.3.30.0100.00714.98
7.3.20.0040.00716.71
7.3.10.0000.01416.71
7.3.00.0100.01016.77
7.2.330.0060.01516.74
7.2.320.0090.01216.76
7.2.310.0120.00416.49
7.2.300.0030.01316.70
7.2.290.0100.00716.88
7.2.250.0070.01114.94
7.2.240.0000.01914.86
7.2.230.0140.00415.17
7.2.220.0100.01015.01
7.2.210.0040.01115.32
7.2.200.0070.00715.11
7.2.190.0080.00315.04
7.2.180.0060.01214.99
7.2.170.0040.01215.21
7.2.160.0080.00814.89
7.2.150.0030.01016.91
7.2.140.0040.01116.91
7.2.130.0040.01116.96
7.2.120.0100.00316.94
7.2.110.0030.01016.85
7.2.100.0070.00716.98
7.2.90.0000.01617.21
7.2.80.0070.00716.80
7.2.70.0040.00717.00
7.2.60.0070.01016.99
7.2.50.0100.00317.01
7.2.40.0060.00916.94
7.2.30.0000.01517.11
7.2.20.0040.01216.70
7.2.10.0080.00316.93
7.2.00.0040.00818.10
7.1.330.0030.01015.75
7.1.320.0040.01115.91
7.1.310.0060.01215.93
7.1.300.0030.01315.73
7.1.290.0030.01415.74
7.1.280.0000.01515.94
7.1.270.0030.01015.65
7.1.260.0040.00815.73
7.1.250.0070.00415.39
7.1.240.0140.00015.68
7.1.230.0000.00915.82
7.1.220.0040.01115.79
7.1.210.0030.01015.78
7.1.200.0040.00615.77
7.1.190.0140.00015.64
7.1.180.0040.00815.72
7.1.170.0030.00915.80
7.1.160.0110.00415.82
7.1.150.0060.00615.83
7.1.140.0130.00315.68
7.1.130.0000.01415.54
7.1.120.0060.00615.73
7.1.110.0110.00315.61
7.1.100.0050.01016.99
7.1.90.0000.01415.49
7.1.80.0090.00615.43
7.1.70.0040.00616.48
7.1.60.0060.00817.55
7.1.50.0030.01016.19
7.1.40.0060.00315.79
7.1.30.0030.00815.54
7.1.20.0060.00815.46
7.1.10.0060.00615.60
7.1.00.0080.03719.12
7.0.330.0070.00715.37
7.0.320.0050.00315.38
7.0.310.0040.00915.39
7.0.300.0030.00615.55
7.0.290.0030.01015.23
7.0.280.0040.00415.44
7.0.270.0060.01015.34
7.0.260.0060.00915.16
7.0.250.0100.00315.63
7.0.240.0000.01615.23
7.0.230.0100.00715.24
7.0.220.0000.01315.12
7.0.210.0040.00815.34
7.0.200.0100.00216.08
7.0.190.0040.01215.36
7.0.180.0090.00415.39
7.0.170.0070.00715.26
7.0.160.0090.00615.35
7.0.150.0080.00415.28
7.0.140.0030.00915.48
7.0.130.0080.00515.53
7.0.120.0070.00715.61
7.0.110.0080.00015.29
7.0.100.0000.01415.30
7.0.90.0070.00715.56
7.0.80.0000.01215.51
7.0.70.0060.00615.39
7.0.60.0070.04417.64
7.0.50.0030.04416.73
7.0.40.0070.02916.88
7.0.30.0140.04016.85
7.0.20.0160.04516.90
7.0.10.0050.04916.87
7.0.00.0030.03316.82
5.6.400.0040.01114.65
5.6.390.0060.00914.32
5.6.380.0090.00614.63
5.6.370.0030.00714.61
5.6.360.0000.00914.36
5.6.350.0030.00714.39
5.6.340.0030.01314.47
5.6.330.0040.01214.73
5.6.320.0070.01114.04
5.6.310.0040.01114.80
5.6.300.0040.01114.34
5.6.290.0000.01114.54
5.6.280.0030.04017.54
5.6.270.0070.00714.37
5.6.260.0050.00814.19
5.6.250.0040.01114.66
5.6.240.0030.00914.59
5.6.230.0040.00814.30
5.6.220.0000.01114.51
5.6.210.0000.03117.58
5.6.200.0050.04016.21
5.6.190.0030.02917.31
5.6.180.0210.03617.38
5.6.170.0100.02917.48
5.6.160.0070.02717.55
5.6.150.0120.02016.16
5.6.140.0070.03716.29
5.6.130.0070.02216.34
5.6.120.0050.02317.64
5.6.110.0150.03817.73
5.6.100.0080.04517.63
5.6.90.0080.03717.80
5.6.80.0050.04517.38
5.6.70.0070.00714.22
5.6.60.0030.00714.22
5.6.50.0040.00714.08
5.6.40.0110.00314.10
5.6.30.0120.00314.23
5.6.20.0060.00914.39
5.6.10.0030.01014.10
5.6.00.0090.00314.41
5.5.380.0040.00814.49
5.5.370.0120.00314.41
5.5.360.0040.00714.45
5.5.350.0140.04217.44
5.5.340.0060.04616.29
5.5.330.0080.04317.36
5.5.320.0030.02517.18
5.5.310.0100.03517.34
5.5.300.0140.03316.38
5.5.290.0020.05016.25
5.5.280.0070.04017.54
5.5.270.0050.02317.50
5.5.260.0050.04717.66
5.5.250.0100.03817.45
5.5.240.0100.04817.37
5.5.230.0140.00014.22
5.5.220.0060.00914.41
5.5.210.0070.00414.63
5.5.200.0040.01114.29
5.5.190.0060.00614.18
5.5.180.0030.01414.35
5.5.170.0030.01214.19
5.5.160.0030.00914.05
5.5.150.0070.00714.13
5.5.140.0030.01214.29
5.5.130.0070.00714.19
5.5.120.0030.01014.21
5.5.110.0040.00414.48
5.5.100.0070.00714.10
5.5.90.0090.00914.05
5.5.80.0100.00714.14
5.5.70.0090.00614.19
5.5.60.0000.01514.35
5.5.50.0040.00414.08
5.5.40.0000.00914.07
5.5.30.0030.00914.54
5.5.20.0110.00314.33
5.5.10.0100.00314.43
5.5.00.0000.00814.25

preferences:
59.1 ms | 401 KiB | 5 Q