3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Base { protected function doit() { throw new \RuntimeException('Not implemented'); } } class Closed extends Base { protected function doit() { echo 'done!'; } } class Opener extends Base { public function execute(Closed $closed) { $closed->doit(); } } $closed = new Closed(); $opener = new Opener(); $opener->execute($closed);

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.130.0040.00418.44
8.3.120.0120.00419.05
8.3.110.0090.00020.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0040.00819.36
8.3.70.0120.00916.63
8.3.60.0140.00416.38
8.3.50.0100.00624.35
8.3.40.0150.00018.89
8.3.30.0110.00418.85
8.3.20.0080.00024.18
8.3.10.0110.00424.66
8.3.00.0070.00326.16
8.2.250.0070.00716.63
8.2.240.0130.00618.63
8.2.230.0100.00022.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0150.00016.58
8.2.180.0110.00425.92
8.2.170.0120.00318.70
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0140.00021.04
8.2.110.0060.00321.12
8.2.100.0040.00717.91
8.2.90.0220.00417.90
8.2.80.0210.00817.97
8.2.70.0230.00517.71
8.2.60.0200.00417.78
8.2.50.0190.00817.74
8.2.40.0170.00717.77
8.2.30.0190.00618.03
8.2.20.0140.00817.84
8.2.10.0170.00617.93
8.2.00.0170.00718.00
8.1.300.0150.00319.52
8.1.290.0080.00430.84
8.1.280.0140.00325.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00721.98
8.1.230.0080.00420.77
8.1.220.0180.00617.70
8.1.210.0180.00517.73
8.1.200.0140.01017.33
8.1.190.0180.00417.66
8.1.180.0200.00417.57
8.1.170.0190.00517.46
8.1.160.0170.00717.82
8.1.150.0220.00417.76
8.1.140.0200.00417.75
8.1.130.0170.00717.52
8.1.120.0150.00617.96
8.1.110.0190.00517.45
8.1.100.0180.00717.49
8.1.90.0180.00617.58
8.1.80.0170.00717.68
8.1.70.0200.00417.63
8.1.60.0190.00617.71
8.1.50.0210.00317.71
8.1.40.0190.00517.82
8.1.30.0190.00617.80
8.1.20.0210.00417.71
8.1.10.0180.00717.72
8.1.00.0230.00417.60
8.0.300.0230.00317.68
8.0.290.0210.00517.09
8.0.280.0230.00317.33
8.0.270.0200.00517.08
8.0.260.0200.00417.11
8.0.250.0210.00417.12
8.0.240.0190.00617.06
8.0.230.0210.00317.15
8.0.220.0200.00517.06
8.0.210.0190.00417.05
8.0.200.0170.00717.17
8.0.190.0200.00417.14
8.0.180.0200.00517.11
8.0.170.0190.00417.14
8.0.160.0210.00417.17
8.0.150.0230.00417.03
8.0.140.0200.00517.07
8.0.130.0190.00516.56
8.0.120.0200.00417.10
8.0.110.0200.00417.06
8.0.100.0200.00517.12
8.0.90.0170.00517.01
8.0.80.0160.00617.03
8.0.70.0170.00616.99
8.0.60.0170.00716.97
8.0.50.0170.00516.99
8.0.30.0180.00617.03
8.0.20.0180.00617.04
8.0.10.0200.00517.11
8.0.00.0210.00417.02
7.4.330.0140.00416.47
7.4.320.0200.00416.91
7.4.300.0200.00416.87
7.4.290.0190.00316.81
7.4.280.0170.00516.87
7.4.270.0180.00316.87
7.4.260.0190.00316.31
7.4.250.0180.00416.86
7.4.240.0190.00316.89
7.4.230.0170.00616.80
7.4.220.0130.00516.77
7.4.210.0130.00616.74
7.4.200.0150.00516.75
7.4.190.0190.00416.85
7.4.180.0170.00516.94
7.4.160.0170.00516.84
7.4.150.0180.00316.86
7.4.140.0200.00216.82
7.4.130.0150.00716.71
7.4.120.0170.00416.79
7.4.110.0130.00816.67
7.4.100.0140.00716.53
7.4.90.0100.01016.41
7.4.80.0110.00916.45
7.4.70.0110.00916.44
7.4.60.0120.00816.43
7.4.50.0110.00916.44
7.4.40.0130.00816.46
7.4.30.0120.00916.46
7.4.20.0120.00816.44
7.4.10.0120.00916.47
7.4.00.0120.00716.47
7.3.330.0160.00616.68
7.3.320.0200.00316.29
7.3.310.0160.00516.68
7.3.300.0180.00416.67
7.3.290.0150.00616.60
7.3.280.0180.00416.67
7.3.270.0140.00616.67
7.3.260.0170.00516.65
7.3.250.0180.00516.69
7.3.240.0160.00616.64
7.3.230.0140.00816.58
7.3.220.0140.00716.44
7.3.210.0120.00816.29
7.3.200.0130.00816.33
7.3.190.0120.00916.35
7.3.180.0120.00916.30
7.3.170.0110.00916.33
7.3.160.0110.00916.34
7.3.150.0110.01016.34
7.3.140.0110.00916.32
7.3.130.0120.00816.33
7.3.120.0120.00716.31
7.3.110.0120.00716.28
7.3.100.0120.00816.27
7.3.90.0130.00816.33
7.3.80.0120.00916.34
7.3.70.0120.00816.28
7.3.60.0130.00716.28
7.3.50.0120.00816.30
7.3.40.0110.00916.33
7.3.30.0120.00716.27
7.3.20.0120.00816.54
7.3.10.0150.00716.55
7.3.00.0130.00816.52
7.2.340.0150.00816.63
7.2.330.0140.00816.50
7.2.320.0120.01016.54
7.2.310.0140.00716.56
7.2.300.0140.00816.51
7.2.290.0130.01016.54
7.2.280.0130.00816.51
7.2.270.0110.00816.51
7.2.260.0120.00816.52
7.2.250.0130.00816.53
7.2.240.0120.00816.49
7.2.230.0130.00916.49
7.2.220.0130.00916.53
7.2.210.0130.00916.49
7.2.200.0140.01016.53
7.2.190.0120.00916.52
7.2.180.0130.00816.50
7.2.170.0130.00916.54
7.2.160.0120.00816.53
7.2.150.0140.00916.83
7.2.140.0140.00816.82
7.2.130.0150.00816.86
7.2.120.0150.00816.86
7.2.110.0140.00816.83
7.2.100.0140.00816.82
7.2.90.0150.00816.85
7.2.80.0130.00916.83
7.2.70.0120.00916.82
7.2.60.0120.00916.85
7.2.50.0140.01016.85
7.2.40.0130.00816.88
7.2.30.0120.01016.87
7.2.20.0140.00816.84
7.2.10.0130.01016.84
7.2.00.0140.00716.83

preferences:
36.92 ms | 403 KiB | 5 Q