3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*interface FooInterface { public function method(); }*/ class Foo { public function method(X $arg = null) { } } class Bar extends Foo { public function method() { } } class Baz extends Bar { public function method(Y $arg = null) { } }

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.4.120.0080.01224.13
8.4.110.0110.00818.63
8.4.100.0040.00618.83
8.4.90.0050.00522.38
8.4.80.0150.00619.07
8.4.70.0080.00718.91
8.4.60.0120.00718.85
8.4.50.0100.01020.27
8.4.40.0070.01317.87
8.4.30.0000.01817.66
8.4.20.0130.00718.26
8.4.10.0100.01019.61
8.3.250.0090.00916.84
8.3.240.0130.00717.29
8.3.230.0150.00516.48
8.3.220.0140.00418.89
8.3.210.0040.00416.52
8.3.200.0050.00316.68
8.3.190.0080.00917.03
8.3.180.0080.00718.83
8.3.170.0070.01120.68
8.3.160.0120.00618.36
8.3.150.0070.01119.03
8.3.140.0000.00718.97
8.3.130.0110.00718.68
8.3.120.0120.00618.78
8.3.110.0070.00420.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0090.00017.97
8.3.70.0090.00616.50
8.3.60.0110.01118.43
8.3.50.0100.00317.96
8.3.40.0060.00918.54
8.3.30.0150.00018.76
8.3.20.0000.00918.85
8.3.10.0110.00421.86
8.3.00.0000.00723.57
8.2.290.0090.01020.37
8.2.280.0100.00918.07
8.2.270.0090.00916.41
8.2.260.0090.00917.01
8.2.250.0040.00416.65
8.2.240.0060.00318.76
8.2.230.0090.00022.58
8.2.220.0000.00837.54
8.2.210.0150.00626.77
8.2.200.0080.00318.18
8.2.190.0130.00716.58
8.2.180.0090.00618.28
8.2.170.0070.00722.96
8.2.160.0160.00020.19
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00422.11
8.2.120.0110.00726.35
8.2.110.0070.00422.18
8.2.100.0040.00817.66
8.2.90.0040.00418.91
8.2.80.0090.00317.97
8.2.70.0050.00317.91
8.2.60.0040.00417.80
8.2.50.0000.00918.10
8.2.40.0060.00319.30
8.2.30.0040.00420.57
8.2.20.0040.00417.86
8.2.10.0050.00217.93
8.2.00.0030.00319.30
8.1.330.0110.00821.91
8.1.320.0090.01017.67
8.1.310.0040.00416.41
8.1.300.0090.00619.38
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0080.00023.92
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.92
8.1.230.0120.00019.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0040.00418.78
8.1.160.0040.00418.76
8.1.150.0000.00718.87
8.1.140.0040.00418.96
8.1.130.0000.00618.93
8.1.120.0000.00717.25
8.1.110.0040.00417.30
8.1.100.0000.00717.36
8.1.90.0000.00717.33
8.1.80.0000.00817.36
8.1.70.0040.00417.35
8.1.60.0000.01017.42
8.1.50.0000.00717.39
8.1.40.0040.00417.43
8.1.30.0070.00317.57
8.1.20.0040.00417.52
8.1.10.0060.00317.45
8.1.00.0000.00717.34
8.0.300.0000.00719.58
8.0.290.0040.00416.63
8.0.280.0000.00718.20
8.0.270.0000.00717.04
8.0.260.0050.00317.13
8.0.250.0030.00316.76
8.0.240.0060.00016.94
8.0.230.0000.00716.80
8.0.220.0030.00616.71
8.0.210.0030.00316.70
8.0.200.0040.00416.88
8.0.190.0040.00416.82
8.0.180.0000.00716.77
8.0.170.0000.00816.77
8.0.160.0000.00716.80
8.0.150.0040.00416.73
8.0.140.0000.00716.78
8.0.130.0000.00513.30
8.0.120.0000.00716.79
8.0.110.0000.00816.69
8.0.100.0000.00716.95
8.0.90.0040.00416.71
8.0.80.0100.00516.77
8.0.70.0000.00716.62
8.0.60.0040.00416.88
8.0.50.0040.00416.71
8.0.30.0100.00817.00
8.0.20.0120.00617.40
8.0.10.0040.00416.77
8.0.00.0050.01316.58
7.4.330.0020.00215.55
7.4.320.0000.00716.50
7.4.300.0070.00016.23
7.4.290.0040.00416.45
7.4.280.0040.00416.42
7.4.270.0030.00516.38
7.4.260.0000.00716.45
7.4.250.0030.00316.43
7.4.240.0070.00016.38
7.4.230.0030.00316.23
7.4.220.0030.00516.50
7.4.210.0070.01116.52
7.4.200.0050.00216.35
7.4.160.0100.00616.45
7.4.140.0120.00717.86
7.4.130.0200.00316.35
7.4.120.0100.01016.44
7.4.110.0040.02116.43
7.4.100.0140.00516.21
7.4.90.0070.01116.20
7.4.80.0050.01519.39
7.4.70.0160.00016.14
7.4.60.0100.00916.23
7.4.50.0130.00316.45
7.4.40.0030.01416.23
7.4.00.0100.00614.88
7.3.330.0050.00013.07
7.3.320.0060.00013.15
7.3.310.0030.00316.24
7.3.300.0070.00016.10
7.3.290.0060.00016.28
7.3.280.0110.00816.23
7.3.260.0100.00816.32
7.3.240.0110.00616.29
7.3.230.0080.00816.25
7.3.210.0110.00616.16
7.3.200.0100.00716.46
7.3.190.0090.00616.22
7.3.180.0110.00616.50
7.3.170.0100.00716.13
7.3.160.0100.01316.13
7.3.120.0090.00914.61
7.3.110.0070.01114.72
7.3.100.0090.00614.91
7.3.90.0030.00914.77
7.3.80.0060.00614.79
7.3.70.0000.01414.64
7.3.60.0030.00714.70
7.3.50.0050.00514.52
7.3.40.0030.01014.76
7.3.30.0030.01014.41
7.3.20.0000.01016.34
7.3.10.0050.00816.33
7.3.00.0070.00816.44
7.2.330.0100.01416.37
7.2.320.0030.01416.60
7.2.310.0040.01516.18
7.2.300.0060.01016.34
7.2.290.0140.00316.39
7.2.250.0000.02114.80
7.2.240.0070.01414.64
7.2.230.0090.00614.80
7.2.220.0080.00314.95
7.2.210.0080.00814.90
7.2.200.0150.00314.73
7.2.190.0070.00714.81
7.2.180.0070.00314.90
7.2.170.0090.00614.82
7.2.130.0250.00916.54
7.2.120.0060.00916.35
7.2.110.0120.01316.30
7.2.100.0150.00616.62
7.2.90.0140.00716.53
7.2.80.0550.00715.32
7.2.70.0450.00615.48
7.2.60.0380.01015.52
7.2.50.0410.01115.68
7.2.40.0490.00315.67
7.2.30.0430.00515.75
7.2.20.0520.00715.49
7.2.10.0440.00815.49
7.2.00.0390.00615.49
7.1.330.0000.01415.47
7.1.320.0070.00315.70
7.1.310.0070.01115.57
7.1.300.0000.01615.54
7.1.290.0060.00615.54
7.1.280.0090.00315.50
7.1.270.0060.00315.72
7.1.260.0100.00315.43
7.1.250.0290.00415.39
7.1.200.0030.00915.46
7.1.190.0820.00713.48
7.1.180.0760.00713.48
7.1.170.0720.00713.52
7.1.160.0770.00613.71
7.1.150.1640.01013.67
7.1.140.0710.00313.21
7.1.130.0710.01013.40
7.1.120.0690.00913.38
7.1.110.0620.01213.69
7.1.100.0780.00313.40
7.1.90.1080.00313.41
7.1.80.1020.00313.74
7.1.70.1160.00313.35
7.1.60.1170.01031.69
7.1.50.1540.01031.99
7.1.40.1590.01031.50
7.1.30.2130.00331.21
7.1.20.1930.00731.51
7.1.10.1850.00613.52
7.1.00.1300.00313.55

preferences:
30.63 ms | 403 KiB | 5 Q