3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public abstract function g(); public static function f(){ echo 'f'; } } class B extends A { public function g(){ echo 'B::f'; } }

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.70.0140.00316.58
8.3.60.0150.00018.30
8.3.50.0160.00521.14
8.3.40.0110.00318.54
8.3.30.0070.00720.16
8.3.20.0080.00018.35
8.3.10.0030.00520.97
8.3.00.0000.00723.46
8.2.180.0060.01216.32
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.70
8.2.110.0070.00319.16
8.2.100.0030.01017.59
8.2.90.0040.00419.10
8.2.80.0000.00719.41
8.2.70.0060.00317.50
8.2.60.0030.00517.80
8.2.50.0060.00318.07
8.2.40.0080.00018.16
8.2.30.0040.00419.46
8.2.20.0000.00717.43
8.2.10.0040.00417.54
8.2.00.0000.00717.55
8.1.280.0150.00425.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.28
8.1.230.0070.00420.96
8.1.220.0040.00418.77
8.1.210.0030.00618.77
8.1.200.0040.00717.22
8.1.190.0060.00317.26
8.1.180.0030.00618.10
8.1.170.0080.00018.62
8.1.160.0040.00418.73
8.1.150.0080.00018.50
8.1.140.0040.00417.31
8.1.130.0070.00017.75
8.1.120.0000.00917.39
8.1.110.0000.00717.30
8.1.100.0030.00317.32
8.1.90.0040.00417.21
8.1.80.0030.00317.29
8.1.70.0030.00317.29
8.1.60.0050.00317.46
8.1.50.0040.00417.32
8.1.40.0040.00417.41
8.1.30.0040.00417.59
8.1.20.0040.00417.43
8.1.10.0030.00517.32
8.1.00.0070.00017.38
8.0.300.0000.00719.79
8.0.290.0000.00717.04
8.0.280.0040.00418.32
8.0.270.0040.00416.63
8.0.260.0000.00816.55
8.0.250.0040.00416.82
8.0.240.0000.00816.73
8.0.230.0050.00216.71
8.0.220.0000.00716.73
8.0.210.0060.00316.80
8.0.200.0040.00416.71
8.0.190.0020.00516.80
8.0.180.0000.00716.76
8.0.170.0030.00516.74
8.0.160.0040.00416.84
8.0.150.0040.00416.74
8.0.140.0000.00716.61
8.0.130.0060.00013.18
8.0.120.0040.00416.61
8.0.110.0000.00816.77
8.0.100.0040.00416.79
8.0.90.0000.00716.65
8.0.80.0030.01216.76
8.0.70.0000.00716.80
8.0.60.0040.00416.64
8.0.50.0080.00016.64
8.0.30.0110.00716.86
8.0.20.0110.01117.40
8.0.10.0070.00016.92
8.0.00.0110.00916.67
7.4.330.0000.00516.67
7.4.320.0000.00716.38
7.4.300.0040.00416.36
7.4.290.0040.00416.22
7.4.280.0030.00316.36
7.4.270.0070.00016.32
7.4.260.0060.00013.16
7.4.250.0040.00416.43
7.4.240.0030.00316.35
7.4.230.0030.00516.22
7.4.220.0060.01216.35
7.4.210.0060.00916.32
7.4.200.0040.00416.28
7.4.190.0070.00016.37
7.4.160.0090.00616.30
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0080.01016.50
7.4.120.0140.00616.41
7.4.110.0120.00616.44
7.4.100.0070.01016.14
7.4.90.0080.01116.32
7.4.80.0070.01019.39
7.4.70.0120.00416.26
7.4.60.0110.00416.21
7.4.50.0040.00416.28
7.4.40.0060.00922.77
7.4.30.0070.01416.30
7.4.00.0090.00615.02
7.3.330.0000.00513.03
7.3.320.0020.00213.17
7.3.310.0060.00016.02
7.3.300.0000.00716.12
7.3.290.0160.00316.21
7.3.280.0100.00616.16
7.3.270.0110.00717.40
7.3.260.0090.01118.24
7.3.250.0080.00916.39
7.3.240.0090.00816.15
7.3.230.0100.00716.39
7.3.210.0060.01016.25
7.3.200.0150.00419.39
7.3.190.0120.00916.46
7.3.180.0120.00316.11
7.3.170.0110.00916.34
7.3.160.0120.00416.14
7.3.120.0030.01414.75
7.2.330.0060.01216.23
7.2.320.0180.00316.23
7.2.310.0050.01416.38
7.2.300.0030.01216.11
7.2.290.0030.01316.48
7.2.110.0200.00316.54
7.2.100.0300.00316.38
7.2.90.0160.00516.19
7.2.80.0080.00916.35
7.2.70.0200.00916.77
7.2.60.0130.00416.52
7.2.50.0100.01016.48
7.2.40.0160.00616.80
7.2.30.0190.00816.72
7.2.20.0290.00616.69
7.2.10.0070.00716.54
7.2.00.0130.00217.86
7.1.230.0150.00415.57
7.1.220.0150.00315.39
7.1.210.0150.00315.46
7.1.200.0140.00515.57
7.1.190.0140.00515.55
7.1.180.0240.00515.53
7.1.170.0190.00015.09
7.1.160.0170.00515.45
7.1.150.0180.00015.53
7.1.140.0190.00715.14
7.1.130.0170.00015.61
7.1.120.0210.00815.65
7.1.110.0100.00715.45
7.1.100.0130.00616.65
7.1.90.0150.01015.78
7.1.80.0190.00815.55
7.1.70.0130.00616.12
7.1.60.0150.00617.38
7.1.50.0210.01216.26
7.1.40.0190.00615.74
7.1.30.0120.01515.94
7.1.20.0170.00615.48
7.1.10.0210.00515.67
7.1.00.0070.03418.88
7.0.310.0170.00315.30
7.0.300.0270.00315.23
7.0.290.0090.00515.07
7.0.280.0080.01315.06
7.0.270.0260.00015.23
7.0.260.0170.00215.38
7.0.250.0170.01015.24
7.0.240.0110.00615.35
7.0.230.0170.00015.32
7.0.220.0110.00915.27
7.0.210.0230.00015.43
7.0.200.0070.00715.86
7.0.190.0140.00415.31
7.0.180.0200.00815.07
7.0.170.0320.00315.26
7.0.160.0190.00515.13
7.0.150.0120.00915.23
7.0.140.0050.04618.60
7.0.130.0200.00415.13
7.0.120.0160.00015.14
7.0.110.0060.01215.38
7.0.100.0300.04017.63
7.0.90.0350.04317.55
7.0.80.0300.04017.54
7.0.70.0240.02917.58
7.0.60.0290.03717.67
7.0.50.0230.02617.80
7.0.40.0110.02216.59
7.0.30.0090.02516.62
7.0.20.0150.01816.68
7.0.10.0070.02516.73
7.0.00.0030.03116.59
5.6.380.0100.00713.94
5.6.370.0120.00614.14
5.6.360.0110.00514.25
5.6.350.0190.00014.20
5.6.340.0120.00414.10
5.6.330.0100.00614.07
5.6.320.0160.00514.38
5.6.310.0060.01314.39
5.6.300.0060.00914.34
5.6.290.0150.00013.85
5.6.280.0110.03717.75
5.6.270.0140.00314.51
5.6.260.0150.00414.19
5.6.250.0150.02617.25
5.6.240.0090.03417.36
5.6.230.0100.04617.23
5.6.220.0100.04217.27
5.6.210.0110.03717.46
5.6.200.0120.04317.46
5.6.190.0080.02917.57
5.6.180.0080.02417.54
5.6.170.0060.02917.47
5.6.160.0070.02517.67
5.6.150.0080.02217.50
5.6.140.0060.03917.43
5.6.130.0100.03917.64
5.6.120.0080.03217.60
5.6.110.0070.02317.63
5.6.100.0070.02817.54
5.6.90.0120.01917.48
5.6.80.0080.02317.36
5.6.70.0030.02817.17
5.6.60.0050.03517.28
5.6.50.0100.02417.21
5.6.40.0080.03617.14
5.6.30.0100.02617.17
5.6.20.0110.03417.22
5.6.10.0120.04117.32
5.6.00.0110.03817.26
5.5.380.0070.03516.58
5.5.370.0080.04216.68
5.5.360.0100.04016.56
5.5.350.0120.03316.61
5.5.340.0050.03216.78
5.5.330.0180.01616.84
5.5.320.0090.02616.84
5.5.310.0100.02016.85
5.5.300.0050.02516.84
5.5.290.0050.02716.79
5.5.280.0060.02316.81
5.5.270.0070.02716.84
5.5.260.0070.02316.79
5.5.250.0020.02516.71
5.5.240.0050.02216.54
5.5.230.0030.03016.45
5.5.220.0070.02416.53
5.5.210.0060.02016.41
5.5.200.0120.02316.53
5.5.190.0090.02116.44
5.5.180.0100.04016.53
5.5.170.0100.00713.71
5.5.160.0050.04216.51
5.5.150.0080.03316.47
5.5.140.0100.03116.52
5.5.130.0080.02216.53
5.5.120.0170.03716.39
5.5.110.0070.04216.39
5.5.100.0070.04416.47
5.5.90.0060.04116.47
5.5.80.0120.03516.47
5.5.70.0100.02516.42
5.5.60.0110.03516.40
5.5.50.0110.03416.47
5.5.40.0100.03616.42
5.5.30.0140.03316.44
5.5.20.0080.04316.41
5.5.10.0100.03716.41
5.5.00.0120.02316.44
5.4.450.0090.02816.00
5.4.440.0020.03416.18
5.4.430.0040.02416.08
5.4.420.0070.02316.12
5.4.410.0060.02016.01
5.4.400.0080.03015.90
5.4.390.0060.02115.98
5.4.380.0020.02515.92
5.4.370.0040.02116.00
5.4.360.0080.02015.94
5.4.350.0080.02815.96
5.4.340.0070.03515.94
5.4.330.0090.00612.79
5.4.320.0070.04015.94
5.4.310.0110.02515.97
5.4.300.0060.04015.96
5.4.290.0030.03515.99
5.4.280.0060.02415.94
5.4.270.0070.04215.92
5.4.260.0110.03115.92
5.4.250.0110.04115.92
5.4.240.0110.03415.92
5.4.230.0100.03815.84
5.4.220.0080.03815.95
5.4.210.0120.03415.94
5.4.200.0090.02415.91
5.4.190.0080.03616.01
5.4.180.0160.03515.97
5.4.170.0100.03216.00
5.4.160.0070.04215.91
5.4.150.0080.02515.90
5.4.140.0100.03814.59
5.4.130.0060.02914.63
5.4.120.0090.02214.51
5.4.110.0080.02814.56
5.4.100.0070.03714.60
5.4.90.0040.04114.68
5.4.80.0070.04014.66
5.4.70.0050.02614.63
5.4.60.0040.03914.54
5.4.50.0090.03514.64
5.4.40.0120.03614.64
5.4.30.0110.03114.64
5.4.20.0140.01514.55
5.4.10.0070.03714.54
5.4.00.0120.03014.36
5.3.290.0060.04013.79
5.3.280.0080.04013.76
5.3.270.0140.03713.76
5.3.260.0050.02813.75
5.3.250.0100.03813.75
5.3.240.0080.05113.66
5.3.230.0070.02713.69
5.3.220.0090.03813.71
5.3.210.0080.03513.72
5.3.200.0060.04013.72
5.3.190.0080.02313.73
5.3.180.0090.03513.69
5.3.170.0060.03413.74
5.3.160.0080.02713.64
5.3.150.0070.03613.66
5.3.140.0070.02213.72
5.3.130.0120.04013.66
5.3.120.0100.03713.64
5.3.110.0090.03413.70
5.3.100.0080.03213.47
5.3.90.0060.02913.47
5.3.80.0070.03713.42
5.3.70.0050.03213.45
5.3.60.0110.03813.41
5.3.50.0070.02513.32
5.3.40.0060.03213.40
5.3.30.0100.02013.40
5.3.20.0070.02713.29
5.3.10.0050.03313.25
5.3.00.0070.03813.18
5.2.170.0100.03011.90
5.2.160.0030.03412.00
5.2.150.0070.02011.98
5.2.140.0060.03412.00
5.2.130.0060.03211.88
5.2.120.0040.02112.00
5.2.110.0070.02412.01
5.2.100.0070.01711.96
5.2.90.0040.02312.00
5.2.80.0050.02112.00
5.2.70.0060.03011.89
5.2.60.0060.02811.92
5.2.50.0060.03211.94
5.2.40.0100.02511.85
5.2.30.0040.03411.89
5.2.20.0070.02511.93
5.2.10.0100.02711.79
5.2.00.0090.02811.79
5.1.60.0090.02511.40
5.1.50.0020.03011.40
5.1.40.0060.02511.40
5.1.30.0040.02011.61
5.1.20.0060.02811.53
5.1.10.0090.02511.49
5.1.00.0070.02111.40
5.0.50.0020.02711.40
5.0.40.0000.02711.40
5.0.30.0070.02811.40
5.0.20.0080.02011.40
5.0.10.0020.02611.40
5.0.00.0070.03211.40
4.4.90.0020.02111.40
4.4.80.0060.01511.40
4.4.70.0040.02011.40
4.4.60.0020.02111.40
4.4.50.0000.01211.40
4.4.40.0020.02811.40
4.4.30.0060.01711.40
4.4.20.0070.01311.40
4.4.10.0040.01411.40
4.4.00.0080.02311.40
4.3.110.0050.01811.40
4.3.100.0040.01811.40
4.3.90.0010.02111.40
4.3.80.0030.02911.40
4.3.70.0020.01911.40
4.3.60.0020.01811.40
4.3.50.0050.01711.40
4.3.40.0080.02111.40
4.3.30.0030.02011.40
4.3.20.0000.01511.40
4.3.10.0020.02111.40
4.3.00.0010.01211.40

preferences:
45.98 ms | 401 KiB | 5 Q