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(); echo $this->s; echo $this->s; } } $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.63
8.3.50.0040.01118.05
8.3.40.0070.01118.71
8.3.30.0150.00318.87
8.3.20.0070.00020.29
8.3.10.0050.00323.65
8.3.00.0070.00719.38
8.2.180.0040.01518.29
8.2.170.0090.00622.96
8.2.160.0170.00020.26
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00420.59
8.2.120.0030.00526.35
8.2.110.0060.00320.52
8.2.100.0090.00318.04
8.2.90.0030.00619.23
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0040.00418.00
8.2.50.0030.00618.07
8.2.40.0000.00821.06
8.2.30.0040.00420.54
8.2.20.0080.00017.63
8.2.10.0030.00618.17
8.2.00.0000.00818.12
8.1.280.0000.01625.92
8.1.270.0090.00923.83
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0040.00422.14
8.1.230.0040.00717.53
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.38
8.1.190.0040.00417.64
8.1.180.0000.00918.10
8.1.170.0030.00518.59
8.1.160.0030.00522.01
8.1.150.0070.00018.87
8.1.140.0040.00819.52
8.1.130.0070.00017.56
8.1.120.0040.00317.49
8.1.110.0040.00417.33
8.1.100.0020.00517.39
8.1.90.0040.00417.34
8.1.80.0030.00617.36
8.1.70.0000.00717.32
8.1.60.0030.00617.47
8.1.50.0040.00417.54
8.1.40.0080.00017.48
8.1.30.0050.00317.62
8.1.20.0080.00017.64
8.1.10.0040.00417.53
8.1.00.0100.00017.42
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0060.00317.29
8.0.260.0030.00317.27
8.0.250.0070.00017.05
8.0.240.0000.00817.01
8.0.230.0040.00416.98
8.0.220.0070.00016.96
8.0.210.0040.00416.96
8.0.200.0030.00316.93
8.0.190.0050.00317.07
8.0.180.0000.00717.02
8.0.170.0080.00016.88
8.0.160.0030.00316.92
8.0.150.0040.00416.89
8.0.140.0030.00316.81
8.0.130.0030.00313.33
8.0.120.0060.00316.95
8.0.110.0050.00216.89
8.0.100.0040.00416.86
8.0.90.0020.00516.78
8.0.80.0060.01516.84
8.0.70.0080.00016.76
8.0.60.0040.00416.88
8.0.50.0000.00716.84
8.0.30.0080.01117.21
8.0.20.0130.01017.40
8.0.10.0070.00017.06
8.0.00.0130.00616.64
7.4.330.0050.00016.79
7.4.320.0020.00516.53
7.4.300.0000.00616.54
7.4.290.0030.00316.52
7.4.280.0000.00916.46
7.4.270.0030.00316.60
7.4.260.0030.00316.45
7.4.250.0000.00716.49
7.4.240.0030.00316.60
7.4.230.0000.00716.42
7.4.220.0100.01716.55
7.4.210.0150.00616.57
7.4.200.0000.00716.35
7.4.160.0090.01216.39
7.4.150.0150.00617.40
7.4.140.0050.01417.86
7.4.130.0100.00816.62
7.4.120.0090.00916.58
7.4.110.0120.00916.48
7.4.100.0180.00316.55
7.4.90.0210.00716.51
7.4.80.0100.01019.39
7.4.70.0060.01116.41
7.4.60.0100.00616.52
7.4.50.0040.01216.56
7.4.40.0100.01316.67
7.4.30.0030.01316.50
7.4.00.0000.01514.77
7.3.330.0040.00413.37
7.3.320.0000.00613.39
7.3.310.0000.00616.46
7.3.300.0030.00316.45
7.3.290.0080.00616.42
7.3.280.0120.00516.43
7.3.270.0100.00717.40
7.3.260.0080.00916.65
7.3.250.0090.00816.58
7.3.240.0090.00916.41
7.3.230.0040.01516.48
7.3.210.0100.00716.30
7.3.200.0140.00316.43
7.3.190.0170.01816.48
7.3.180.0170.00416.67
7.3.170.0150.00416.58
7.3.160.0120.01216.39
7.3.10.0050.00516.54
7.3.00.0070.00716.37
7.2.330.0120.00616.75
7.2.320.0060.01216.84
7.2.310.0140.00316.65
7.2.300.0030.01416.69
7.2.290.0130.00916.64
7.2.130.0080.00416.62
7.2.120.0090.00716.59
7.2.110.0070.00416.86
7.2.100.0100.00416.69
7.2.90.0090.00516.81
7.2.80.0060.00716.48
7.2.70.0110.00616.81
7.2.60.0110.00516.66
7.2.50.0090.00516.78
7.2.40.0070.00916.84
7.2.30.0130.00416.70
7.2.20.0100.00216.70
7.2.10.0150.00316.96
7.2.00.0040.00917.59
7.1.250.0050.00515.52
7.1.240.0080.00815.69
7.1.230.0150.00015.62
7.1.220.0120.00415.58
7.1.210.0080.00915.84
7.1.200.0250.00915.70
7.1.190.0100.01015.49
7.1.180.0050.01415.78
7.1.170.0080.00815.86
7.1.160.0090.00915.94
7.1.150.0080.00915.73
7.1.140.0080.00515.79
7.1.130.0030.01115.57
7.1.120.0090.00515.82
7.1.110.0070.00715.84
7.1.100.0110.00417.03
7.1.90.0150.00315.78
7.1.80.0130.00315.82
7.1.70.0090.00616.26
7.1.60.0140.00617.61
7.1.50.0180.01025.20
7.1.40.0120.00315.55
7.1.30.0150.00015.41
7.1.20.0110.00315.79
7.1.10.0130.00415.68
7.1.00.0060.04218.92
7.0.320.0120.00315.28
7.0.310.0100.00315.38
7.0.300.0080.00815.42
7.0.290.0120.00615.32
7.0.280.0080.00815.52
7.0.270.0070.00715.32
7.0.260.0040.01215.28
7.0.250.0160.00315.29
7.0.240.0150.00415.53
7.0.230.0070.01115.54
7.0.220.0070.01015.49
7.0.210.0090.00615.54
7.0.200.0070.00516.20
7.0.190.0110.00715.18
7.0.180.0090.00615.49
7.0.170.0140.00315.54
7.0.160.0110.00415.29
7.0.150.0140.00415.37
7.0.140.0180.00015.47
7.0.130.0130.00015.62
7.0.120.0130.00315.61
7.0.110.0080.00815.32
7.0.100.0170.00015.27
7.0.90.0160.00015.32
7.0.80.0130.00315.23
7.0.70.0160.00315.45
7.0.60.0090.04217.63
7.0.50.0110.02916.67
7.0.40.0040.02816.83
7.0.30.0190.04016.78
7.0.20.0180.02716.87
7.0.10.0070.04516.88
7.0.00.0080.02416.85
5.6.380.0040.00914.68
5.6.370.0120.00614.43
5.6.360.0130.00414.46
5.6.350.0090.00714.62
5.6.340.0110.00414.82
5.6.330.0110.00414.58
5.6.320.0110.00414.47
5.6.310.0120.00414.39
5.6.300.0140.00314.60
5.6.290.0120.00414.50
5.6.280.0060.04017.85
5.6.270.0090.00914.71
5.6.260.0080.00814.35
5.6.250.0050.01314.66
5.6.240.0090.00814.50
5.6.230.0120.00314.76
5.6.220.0110.00314.61
5.6.210.0080.04217.52
5.6.200.0050.04116.28
5.6.190.0070.03417.57
5.6.180.0220.02717.74
5.6.170.0250.04317.73
5.6.160.0080.03017.57
5.6.150.0070.04716.17
5.6.140.0110.04316.20
5.6.130.0070.02216.35
5.6.120.0070.02417.83
5.6.110.0100.04517.68
5.6.100.0090.02817.76
5.6.90.0120.04217.67
5.6.80.0100.02817.36
5.6.70.0090.00514.47
5.6.60.0040.01214.48
5.6.50.0110.00414.38
5.6.40.0100.00714.30
5.6.30.0080.00814.46
5.6.20.0100.00814.48
5.6.10.0100.00614.35
5.6.00.0130.00314.63
5.5.380.0060.00611.27
5.5.370.0140.00011.38
5.5.360.0070.00411.36
5.5.350.0190.03215.98
5.5.340.0020.04614.72
5.5.330.0110.03915.94
5.5.320.0090.02315.74
5.5.310.0140.04415.89
5.5.300.0070.02714.54
5.5.290.0010.04414.53
5.5.280.0040.04715.97
5.5.270.0060.02215.94
5.5.260.0070.03216.13
5.5.250.0070.04216.06
5.5.240.0170.03515.84
5.5.230.0090.00611.17
5.5.220.0100.00311.41
5.5.210.0030.01011.33
5.5.200.0080.00411.14
5.5.190.0100.00311.25
5.5.180.0080.00311.31
5.5.170.0130.00314.18
5.5.160.0060.00311.28
5.5.150.0100.00311.32
5.5.140.0140.00011.16
5.5.130.0070.00411.34
5.5.120.0140.00011.25
5.5.110.0110.00011.09
5.5.100.0040.00711.30
5.5.90.0080.00811.28
5.5.80.0050.00811.41
5.5.70.0060.00311.40
5.5.60.0080.00711.02
5.5.50.0120.00311.34
5.5.40.0090.00311.06
5.5.30.0110.00411.13
5.5.20.0060.00311.32
5.5.10.0030.00711.27
5.5.00.0080.00510.98

preferences:
38.46 ms | 400 KiB | 5 Q