3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Action { public function sayHello($string); } interface AddAction extends Action { public function sayHello($string, $test=null); } class Add implements AddAction { public function sayHello($string, $test=null) { echo $string, PHP_EOL; } } $x = new Add(); $x->sayHello("hi");

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.0160.00318.43
8.3.50.0110.00921.02
8.3.40.0000.01518.70
8.3.30.0140.00320.36
8.3.20.0040.00420.34
8.3.10.0040.00422.10
8.3.00.0070.00422.52
8.2.180.0140.00716.50
8.2.170.0030.01422.96
8.2.160.0110.00422.12
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00020.78
8.2.110.0060.00322.00
8.2.100.0090.00317.78
8.2.90.0030.00617.75
8.2.80.0000.00918.04
8.2.70.0080.00017.93
8.2.60.0030.00517.93
8.2.50.0050.00318.10
8.2.40.0000.00720.35
8.2.30.0000.00719.35
8.2.20.0040.00417.62
8.2.10.0040.00417.69
8.2.00.0000.00817.70
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0090.00022.24
8.1.230.0050.00519.09
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0080.00017.12
8.1.180.0080.00018.10
8.1.170.0000.00818.41
8.1.160.0000.00818.88
8.1.150.0000.00718.69
8.1.140.0000.00717.37
8.1.130.0000.00717.73
8.1.120.0070.00017.37
8.1.110.0050.00317.45
8.1.100.0000.01017.41
8.1.90.0040.00417.43
8.1.80.0030.00417.50
8.1.70.0030.00317.48
8.1.60.0050.00317.49
8.1.50.0000.00717.38
8.1.40.0040.00417.43
8.1.30.0000.00717.61
8.1.20.0040.00417.67
8.1.10.0000.00717.47
8.1.00.0040.00417.53
8.0.300.0060.00319.58
8.0.290.0080.00016.75
8.0.280.0040.00418.45
8.0.270.0030.00317.26
8.0.260.0030.00316.74
8.0.250.0030.00316.89
8.0.240.0040.00416.93
8.0.230.0030.00516.94
8.0.220.0030.00516.92
8.0.210.0070.00016.80
8.0.200.0040.00416.97
8.0.190.0040.00416.95
8.0.180.0000.00716.82
8.0.170.0000.00816.80
8.0.160.0040.00416.83
8.0.150.0040.00416.83
8.0.140.0000.00716.84
8.0.130.0030.00313.30
8.0.120.0000.00816.77
8.0.110.0040.00416.80
8.0.100.0000.00716.93
8.0.90.0020.00516.81
8.0.80.0110.00916.94
8.0.70.0050.00217.02
8.0.60.0000.00716.86
8.0.50.0050.00316.95
8.0.30.0090.00917.13
8.0.20.0100.00817.40
8.0.10.0040.00417.14
8.0.00.0060.01116.74
7.4.330.0050.00015.14
7.4.320.0030.00316.41
7.4.300.0060.00016.46
7.4.290.0060.00016.51
7.4.280.0040.00416.35
7.4.270.0030.00316.63
7.4.260.0000.00613.26
7.4.250.0040.00416.61
7.4.240.0070.00016.47
7.4.230.0030.00316.25
7.4.220.0000.01716.56
7.4.210.0080.00916.54
7.4.200.0000.00716.72
7.4.190.0030.00316.41
7.4.160.0070.01016.43
7.4.150.0190.00617.40
7.4.140.0100.00917.86
7.4.130.0100.00816.35
7.4.120.0100.00716.62
7.4.110.0060.00916.49
7.4.100.0060.01216.34
7.4.90.0100.00716.46
7.4.80.0160.00719.39
7.4.70.0100.01016.56
7.4.60.0100.00616.23
7.4.50.0030.00316.55
7.4.40.0060.00922.77
7.4.30.0080.00916.34
7.4.00.0060.01015.15
7.3.330.0060.00013.23
7.3.320.0000.00513.16
7.3.310.0040.00416.19
7.3.300.0060.00016.10
7.3.290.0060.00916.17
7.3.280.0090.00716.16
7.3.270.0100.00717.40
7.3.260.0130.01116.28
7.3.250.0110.00716.41
7.3.240.0100.00716.53
7.3.230.0070.01116.39
7.3.210.0070.01116.48
7.3.200.0110.01119.39
7.3.190.0160.00016.59
7.3.180.0090.00616.53
7.3.170.0160.00016.34
7.3.160.0070.01016.52
7.3.120.0060.00615.09
7.2.330.0070.01116.70
7.2.320.0100.00716.44
7.2.310.0120.00616.50
7.2.300.0060.00916.50
7.2.290.0030.01316.65
7.2.00.0120.00319.41
7.1.100.0060.00618.20
7.1.70.0000.00717.08
7.1.60.0100.01419.32
7.1.50.0060.01516.86
7.1.00.0030.03322.54
7.0.200.0030.00716.83
7.0.140.0070.07022.09
7.0.100.0300.07719.95
7.0.90.0070.04019.99
7.0.80.0070.07319.86
7.0.70.0070.05020.00
7.0.60.0000.08019.98
7.0.50.0070.08020.31
7.0.40.0170.07020.18
7.0.30.0030.08320.09
7.0.20.0070.05320.04
7.0.10.0070.05020.14
7.0.00.0100.07720.10
5.6.280.0070.07021.08
5.6.250.0100.07720.57
5.6.240.0030.08320.70
5.6.230.0100.07320.69
5.6.220.0000.07720.74
5.6.210.0070.06720.58
5.6.200.0100.08320.96
5.6.190.0130.07021.06
5.6.180.0230.06721.02
5.6.170.0070.05021.02
5.6.160.0070.06321.11
5.6.150.0070.08721.08
5.6.140.0200.07021.12
5.6.130.0170.04021.02
5.6.120.0100.04321.07
5.6.110.0030.07321.03
5.6.100.0070.08020.90
5.6.90.0100.08020.99
5.6.80.0000.08320.34
5.6.70.0130.06720.49
5.6.60.0030.08320.43
5.6.50.0130.07720.34
5.6.40.0130.06020.31
5.6.30.0000.08020.48
5.6.20.0070.06720.44
5.6.10.0030.04720.39
5.6.00.0030.08720.39
5.5.380.0000.08320.50
5.5.370.0130.07320.46
5.5.360.0130.07720.53
5.5.350.0070.08020.43
5.5.340.0070.08020.83
5.5.330.0030.07720.91
5.5.320.0070.08020.90
5.5.310.0030.08720.91
5.5.300.0070.08020.77
5.5.290.0200.07320.63
5.5.280.0070.08020.90
5.5.270.0070.07720.93
5.5.260.0030.08320.73
5.5.250.0070.04020.60
5.5.240.0030.08020.04
5.5.230.0070.08320.18
5.5.220.0100.08320.26
5.5.210.0100.08020.28
5.5.200.0130.07720.21
5.5.190.0100.07720.16
5.5.180.0170.07020.22
5.5.160.0070.07020.14
5.5.150.0030.07720.12
5.5.140.0100.07320.19
5.5.130.0100.07020.09
5.5.120.0130.06020.25
5.5.110.0070.08320.16
5.5.100.0100.07320.13
5.5.90.0170.07020.11
5.5.80.0070.06320.08
5.5.70.0130.06320.07
5.5.60.0130.06320.11
5.5.50.0100.06720.16
5.5.40.0100.07720.10
5.5.30.0170.07320.06
5.5.20.0130.07020.00
5.5.10.0070.07320.03
5.5.00.0030.07720.10
5.4.450.0100.04319.27
5.4.440.0000.05319.51
5.4.430.0170.07019.37
5.4.420.0030.07019.46
5.4.410.0100.04719.24
5.4.400.0100.06019.22
5.4.390.0070.07019.05
5.4.380.0130.07319.15
5.4.370.0030.08019.16
5.4.360.0100.07318.86
5.4.350.0070.08019.05
5.4.340.0200.06319.14
5.4.320.0030.08319.14
5.4.310.0100.07019.10
5.4.300.0070.07319.23
5.4.290.0170.06319.24
5.4.280.0070.08019.09
5.4.270.0070.07319.04
5.4.260.0170.06319.04
5.4.250.0130.06019.04
5.4.240.0100.07019.12
5.4.230.0070.07719.03
5.4.220.0200.07319.02
5.4.210.0170.07318.90
5.4.200.0130.05718.87
5.4.190.0070.08019.13
5.4.180.0030.04718.87
5.4.170.0070.07319.20
5.4.160.0070.08719.03
5.4.150.0030.04319.07
5.4.140.0130.06016.48
5.4.130.0030.05016.48
5.4.120.0030.03716.51
5.4.110.0070.03316.57
5.4.100.0030.03716.39
5.4.90.0030.03316.38
5.4.80.0100.04716.52
5.4.70.0070.03016.40
5.4.60.0030.03716.45
5.4.50.0030.03716.37
5.4.40.0070.03716.39
5.4.30.0100.03316.30
5.4.20.0030.06716.42
5.4.10.0200.06016.31
5.4.00.0070.06715.93
5.3.290.0130.07314.70
5.3.280.0070.07314.61
5.3.270.0170.06714.75
5.3.260.0130.06314.63
5.3.250.0100.06314.59
5.3.240.0070.03714.54
5.3.230.0100.07014.73
5.3.220.0100.04014.69
5.3.210.0070.03714.55
5.3.200.0030.04314.50
5.3.190.0000.04014.55
5.3.180.0100.03314.62
5.3.170.0000.04014.54
5.3.160.0070.03714.50
5.3.150.0070.04014.67
5.3.140.0000.04014.68
5.3.130.0070.03714.61
5.3.120.0000.04314.62
5.3.110.0030.06314.64
5.3.100.0000.04314.16
5.3.90.0030.06713.96
5.3.80.0070.06713.96
5.3.70.0070.06714.11
5.3.60.0030.06313.99
5.3.50.0100.06713.89
5.3.40.0070.05313.90
5.3.30.0170.04014.02
5.3.20.0030.03713.71
5.3.10.0030.04313.55
5.3.00.0000.04013.53
5.2.170.0030.06311.07
5.2.160.0030.05011.21
5.2.150.0030.04711.28
5.2.140.0070.03311.06
5.2.130.0030.04311.12
5.2.120.0030.04711.04
5.2.110.0130.03011.16
5.2.100.0070.03710.97
5.2.90.0000.04011.20
5.2.80.0000.03711.19
5.2.70.0030.03011.05
5.2.60.0000.03311.12
5.2.50.0100.03311.15
5.2.40.0000.07010.92
5.2.30.0000.03011.01
5.2.20.0070.02711.00
5.2.10.0030.02710.78
5.2.00.0030.02710.84
5.1.60.0030.02310.11
5.1.50.0030.03310.11
5.1.40.0070.0409.86
5.1.30.0030.06010.37
5.1.20.0070.02710.39
5.1.10.0000.0309.96
5.1.00.0030.02710.18
5.0.50.0000.0238.82
5.0.40.0000.0208.82
5.0.30.0070.0508.82
5.0.20.0000.0308.82
5.0.10.0000.0238.82
5.0.00.0070.0338.82
4.4.90.0000.0178.82
4.4.80.0000.0208.82
4.4.70.0030.0178.82
4.4.60.0000.0238.82
4.4.50.0000.0238.82
4.4.40.0030.0378.82
4.4.30.0030.0238.82
4.4.20.0030.0238.82
4.4.10.0000.0178.82
4.4.00.0030.0238.82
4.3.110.0000.0278.82
4.3.100.0000.0178.82
4.3.90.0000.0178.82
4.3.80.0000.0278.82
4.3.70.0000.0138.82
4.3.60.0000.0178.82
4.3.50.0070.0208.82
4.3.40.0000.0238.82
4.3.30.0030.0138.82
4.3.20.0000.0308.82
4.3.10.0030.0138.82
4.3.00.0030.0138.82

preferences:
52.49 ms | 401 KiB | 5 Q