3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 'a'; private $b = 'a'; public function __get($key) { return $this->$key; } } class B extends A { private $a = 'b'; public function __get($key) { return $this->$key; } } $a = new A(); echo $a->a; echo $a->b; $b = new B(); echo $b->a; echo $b->b;

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.55
8.3.50.0090.00618.29
8.3.40.0100.00318.47
8.3.30.0070.00718.84
8.3.20.0040.00420.39
8.3.10.0080.00021.90
8.3.00.0040.00419.74
8.2.180.0150.00018.29
8.2.170.0120.00322.96
8.2.160.0030.01022.15
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00221.04
8.2.120.0070.00026.35
8.2.110.0070.00321.03
8.2.100.0060.00617.78
8.2.90.0000.00818.03
8.2.80.0030.00618.04
8.2.70.0000.00817.93
8.2.60.0050.00217.93
8.2.50.0040.00418.10
8.2.40.0040.00422.22
8.2.30.0000.00719.52
8.2.20.0020.00517.94
8.2.10.0030.00618.09
8.2.00.0070.00018.30
8.1.280.0030.01025.92
8.1.270.0040.00420.29
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0120.00020.27
8.1.230.0040.00722.61
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0000.00818.27
8.1.160.0050.00318.91
8.1.150.0000.00720.26
8.1.140.0060.00317.58
8.1.130.0000.00718.89
8.1.120.0030.00317.46
8.1.110.0040.00417.40
8.1.100.0000.00717.53
8.1.90.0050.00517.42
8.1.80.0070.00017.35
8.1.70.0000.00717.36
8.1.60.0030.00617.62
8.1.50.0050.00317.41
8.1.40.0060.00317.53
8.1.30.0060.00317.48
8.1.20.0050.00417.55
8.1.10.0090.00317.58
8.1.00.0050.00317.50
8.0.300.0040.00419.71
8.0.290.0080.00016.75
8.0.280.0050.00318.45
8.0.270.0070.00017.22
8.0.260.0100.00016.89
8.0.250.0040.00417.05
8.0.240.0030.00516.98
8.0.230.0030.00316.92
8.0.220.0030.00316.86
8.0.210.0000.00717.04
8.0.200.0070.00017.01
8.0.190.0000.00916.91
8.0.180.0000.00716.85
8.0.170.0000.00916.89
8.0.160.0040.00416.84
8.0.150.0000.00716.88
8.0.140.0070.00016.83
8.0.130.0000.00513.36
8.0.120.0000.00716.88
8.0.110.0000.00716.94
8.0.100.0040.00416.91
8.0.90.0020.00516.81
8.0.80.0090.01216.95
8.0.70.0000.00816.79
8.0.60.0040.00416.84
8.0.50.0050.00316.94
8.0.30.0090.01017.22
8.0.20.0120.00717.40
8.0.10.0030.00317.03
8.0.00.0090.01116.69
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0030.00316.56
7.4.290.0040.00416.32
7.4.280.0000.00816.51
7.4.270.0030.00716.50
7.4.260.0000.00716.41
7.4.250.0000.00816.43
7.4.240.0000.00716.48
7.4.230.0030.00316.40
7.4.220.0000.00816.58
7.4.210.0060.00816.63
7.4.200.0000.00716.63
7.4.160.0140.00716.52
7.4.150.0100.01017.40
7.4.140.0100.00817.86
7.4.130.0130.00416.34
7.4.120.0090.01016.63
7.4.110.0100.01016.42
7.4.100.0100.00716.57
7.4.90.0140.00316.48
7.4.80.0090.01219.39
7.4.70.0070.01116.61
7.4.60.0110.01116.67
7.4.50.0110.00716.46
7.4.40.0100.00716.64
7.4.00.0040.01115.05
7.3.330.0060.00013.40
7.3.320.0060.00013.19
7.3.310.0030.00316.33
7.3.300.0030.00316.25
7.3.290.0070.01016.35
7.3.280.0070.01016.37
7.3.270.0090.00917.40
7.3.260.0090.01116.42
7.3.250.0090.00916.48
7.3.240.0110.00816.45
7.3.230.0080.00816.45
7.3.210.0130.01016.39
7.3.200.0090.00616.44
7.3.190.0090.00916.46
7.3.180.0060.01216.55
7.3.170.0080.00816.31
7.3.160.0120.00916.40
7.2.330.0110.00716.50
7.2.320.0100.01316.43
7.2.310.0100.00716.75
7.2.300.0120.00616.42
7.2.290.0070.01016.48
7.2.60.0070.00716.58
7.2.10.0320.01317.86
7.2.00.0370.01017.71
7.1.200.0040.00715.62
7.1.130.0460.00016.73
7.1.120.0270.01216.55
7.1.110.0400.00915.86
7.1.100.0510.01016.09
7.1.90.0630.01616.05
7.1.80.0450.01215.97
7.1.70.0460.01015.16
7.1.60.0810.00633.25
7.1.50.0750.02132.73
7.1.40.0530.01832.34
7.1.30.0200.01632.65
7.1.20.0410.01732.53
7.1.10.0020.01214.54
7.1.00.0340.00614.86

preferences:
56.57 ms | 401 KiB | 5 Q