3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function method1(): string { return $this->protectedMethod1(); } protected function protectedMethod1(): string { return 'parent'; } } class ChildClass extends ParentClass { public function method1(): string { return parent::method1(); } protected function protectedMethod1(): string { return 'child'; } } $c = new ChildClass; var_dump($c->method1());

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.5.00.0130.01220.03
8.4.150.0020.00014.05
8.4.140.0140.00817.57
8.4.130.0070.01318.00
8.4.120.0150.00922.36
8.4.110.0100.00520.64
8.4.100.0100.01117.61
8.4.90.0030.00517.77
8.4.80.0100.01117.77
8.4.70.0080.01217.71
8.4.60.0140.00717.57
8.4.50.0050.00517.78
8.4.40.0030.00617.58
8.4.30.0060.01320.32
8.4.20.0130.00717.75
8.4.10.0060.00321.15
8.3.280.0140.00620.09
8.3.270.0090.01016.55
8.3.260.0090.01016.42
8.3.250.0120.00719.04
8.3.240.0090.00916.25
8.3.230.0090.00216.37
8.3.220.0090.00619.04
8.3.210.0100.00816.44
8.3.200.0100.00916.45
8.3.190.0090.01016.40
8.3.180.0160.00516.71
8.3.170.0120.00616.61
8.3.160.0070.01018.14
8.3.150.0060.01217.11
8.3.140.0140.00016.46
8.3.130.0030.00618.45
8.3.120.0040.00418.78
8.3.110.0130.00620.94
8.3.100.0000.01024.06
8.3.90.0050.00326.77
8.3.80.0090.00019.36
8.3.70.0110.00716.63
8.3.60.0090.00618.16
8.3.50.0090.00824.49
8.3.40.0130.00721.82
8.3.30.0150.00018.72
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0100.00720.61
8.2.280.0090.01016.50
8.2.270.0140.00016.70
8.2.260.0040.01420.55
8.2.250.0090.00016.70
8.2.240.0040.01518.76
8.2.230.0110.00022.58
8.2.220.0090.00037.54
8.2.210.0000.00726.77
8.2.200.0000.00918.88
8.2.190.0130.00916.58
8.2.180.0110.00425.92
8.2.170.0170.00319.00
8.2.160.0040.01122.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.35
8.2.110.0030.00719.27
8.2.100.0000.01217.72
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0040.00417.46
8.2.50.0080.00018.05
8.2.40.0060.00318.09
8.2.30.0000.00717.90
8.2.20.0070.00017.98
8.2.10.0020.00519.15
8.2.00.0050.00319.18
8.1.330.0120.00716.66
8.1.320.0150.00616.33
8.1.310.0080.00016.69
8.1.300.0050.00516.13
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.63
8.1.230.0040.00817.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00817.13
8.1.180.0030.00518.10
8.1.170.0080.00018.59
8.1.160.0060.00318.83
8.1.150.0040.00418.70
8.1.140.0000.00818.82
8.1.130.0070.00020.07
8.1.120.0030.00517.30
8.1.110.0020.00517.28
8.1.100.0000.00717.31
8.1.90.0030.00317.34
8.1.80.0000.00717.32
8.1.70.0070.00017.30
8.1.60.0040.00417.44
8.1.50.0040.00417.51
8.1.40.0000.00717.51
8.1.30.0000.00817.68
8.1.20.0030.00617.61
8.1.10.0030.00617.48
8.1.00.0000.00717.38
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0030.00317.83
8.0.260.0030.00318.62
8.0.250.0070.00016.85
8.0.240.0040.00416.91
8.0.230.0000.00716.77
8.0.220.0030.00316.79
8.0.210.0080.00016.75
8.0.200.0030.00316.88
8.0.190.0040.00416.86
8.0.180.0070.00016.91
8.0.170.0040.00416.87
8.0.160.0000.00716.83
8.0.150.0000.00816.78
8.0.140.0080.00016.83
8.0.130.0050.00013.30
8.0.120.0040.00416.79
8.0.110.0040.00416.88
8.0.100.0030.00316.62
8.0.90.0070.00016.84
8.0.80.0070.00716.78
8.0.70.0040.00416.84
8.0.60.0080.00016.85
8.0.50.0040.00416.70
8.0.30.0130.00316.94
8.0.20.0040.01517.15
8.0.10.0040.00416.84
8.0.00.0120.00916.85
7.4.330.0030.00315.55
7.4.320.0030.00316.46
7.4.300.0020.00516.50
7.4.290.0000.00916.56
7.4.280.0030.00416.64
7.4.270.0050.00216.61
7.4.260.0070.00013.13
7.4.250.0000.00716.55
7.4.240.0000.00716.40
7.4.230.0050.00216.60
7.4.220.0070.00016.50
7.4.210.0100.00816.60
7.4.200.0000.00816.59
7.4.130.0100.00916.41
7.4.120.0050.01416.52
7.4.110.0080.01116.42
7.4.100.0100.01116.53
7.4.90.0140.00816.39
7.4.80.0140.00516.47
7.4.70.0070.01116.43
7.4.60.0090.00916.39
7.4.50.0110.01016.33
7.4.40.0090.00916.38
7.4.30.0110.00716.30
7.4.20.0100.00816.35
7.4.10.0100.00616.34
7.4.00.0140.00416.39
7.3.330.0030.00316.08
7.3.320.0000.00513.06
7.3.310.0030.00316.13
7.3.300.0020.00716.28
7.3.290.0100.00716.19
7.3.260.0090.00816.19
7.3.250.0090.00916.25
7.3.240.0130.00516.32
7.3.230.0120.00816.30
7.3.220.0120.00816.24
7.3.210.0100.01016.20
7.3.200.0080.01116.17
7.3.190.0120.00916.39
7.3.180.0070.01016.16
7.3.170.0070.01116.20
7.3.160.0130.00716.33
7.3.150.0100.00916.35
7.3.140.0120.00516.24
7.3.130.0090.01016.22
7.3.120.0090.01116.23
7.3.110.0180.00416.24
7.3.100.0150.00616.28
7.3.90.0140.00716.37
7.3.80.0150.00316.15
7.3.70.0090.01116.19
7.3.60.0080.01316.27
7.3.50.0070.01016.14
7.3.40.0120.00516.21
7.3.30.0090.01016.35
7.3.20.0140.00316.10
7.3.10.0090.00916.21
7.3.00.0080.01116.27

preferences:
164.84 ms | 403 KiB | 5 Q