3v4l.org

run code in 300+ PHP versions simultaneously
<?php // lib 1 code: interface Lib1Interface { // name was originally $myparam, but has been changed. public function method($mychangedparam); } // lib 2 code: class Lib2Implementation implements Lib1Interface { public function method($myparam) { echo $myparam; } } // your code: class MyImplementation implements Lib1Interface { public function method($mychangedparam) { echo $mychangedparam; } } function doStuff(Lib1Interface $interface) { // named params can't be used here because of implementation details elsewhere. this is very opaque. $interface->method(mychangedparam: 42); } doStuff(new Lib2Implementation()); doStuff(new MyImplementation());

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.0120.00821.94
8.4.110.0090.01118.68
8.4.100.0120.00817.77
8.4.90.0140.00319.55
8.4.80.0090.00917.90
8.4.70.0130.00817.93
8.4.60.0070.00319.61
8.4.50.0150.00717.85
8.4.40.0080.00819.48
8.4.30.0060.01320.53
8.4.20.0090.01220.77
8.4.10.0060.00319.53
8.3.250.0130.00618.98
8.3.240.0090.01016.70
8.3.230.0130.00616.62
8.3.220.0100.00817.20
8.3.210.0120.00816.79
8.3.200.0100.01016.35
8.3.190.0120.00816.66
8.3.180.0050.00318.61
8.3.170.0090.00918.93
8.3.160.0070.01118.43
8.3.150.0110.00720.79
8.3.140.0060.00316.65
8.3.130.0070.00016.59
8.3.120.0000.00919.10
8.3.110.0130.00720.94
8.3.100.0070.00716.69
8.3.90.0070.00026.77
8.3.80.0100.00016.72
8.3.70.0110.00416.58
8.3.60.0110.00416.63
8.3.50.0100.01020.08
8.3.40.0100.00620.53
8.3.30.0070.00718.84
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0050.01220.25
8.2.280.0110.00716.79
8.2.270.0160.00317.02
8.2.260.0140.00418.52
8.2.250.0060.00316.44
8.2.240.0060.00318.66
8.2.230.0090.00022.58
8.2.220.0040.00424.06
8.2.210.0050.00326.77
8.2.200.0040.00416.63
8.2.190.0040.01116.75
8.2.180.0130.00625.92
8.2.170.0170.00018.96
8.2.160.0160.00022.96
8.2.150.0000.00825.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0030.00720.99
8.2.100.0060.00618.03
8.2.90.0080.00019.76
8.2.80.0040.00419.07
8.2.70.0030.00617.50
8.2.60.0030.00618.03
8.2.50.0060.00318.07
8.2.40.0000.00718.16
8.2.30.0040.00417.92
8.2.20.0050.00318.09
8.2.10.0040.00420.64
8.2.00.0000.00719.26
8.1.330.0140.00516.63
8.1.320.0090.00215.84
8.1.310.0040.00416.72
8.1.300.0040.00415.98
8.1.290.0040.00430.84
8.1.280.0070.01025.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00822.19
8.1.230.0030.00920.96
8.1.220.0030.00517.74
8.1.210.0080.00018.97
8.1.200.0060.00317.36
8.1.190.0040.00417.10
8.1.180.0070.00318.10
8.1.170.0000.00820.44
8.1.160.0000.00718.74
8.1.150.0050.00318.58
8.1.140.0030.00518.86
8.1.130.0000.00723.93
8.1.120.0040.00417.30
8.1.110.0070.00017.43
8.1.100.0000.00917.35
8.1.90.0030.00317.44
8.1.80.0070.00017.32
8.1.70.0070.00017.28
8.1.60.0080.00017.51
8.1.50.0080.00017.37
8.1.40.0040.00417.36
8.1.30.0030.00617.47
8.1.20.0000.00817.48
8.1.10.0070.00017.49
8.1.00.0040.00417.43
8.0.300.0070.00020.08
8.0.290.0080.00016.75
8.0.280.0000.00818.44
8.0.270.0000.00718.11
8.0.260.0070.00018.59
8.0.250.0000.00716.98
8.0.240.0030.00316.89
8.0.230.0040.00416.89
8.0.220.0030.00316.95
8.0.210.0000.00716.95
8.0.200.0040.00417.08
8.0.190.0050.00517.00
8.0.180.0040.00416.87
8.0.170.0060.00316.82
8.0.160.0040.00416.92
8.0.150.0000.00716.89
8.0.140.0030.00316.95
8.0.130.0050.00213.35
8.0.120.0040.00416.93
8.0.110.0000.00816.81
8.0.100.0000.00716.80
8.0.90.0040.00416.98
8.0.80.0060.00216.92
8.0.70.0040.00416.79
8.0.60.0040.00416.88
8.0.50.0040.00416.94
8.0.30.0010.00716.99
8.0.20.0020.00517.07
8.0.10.0030.00417.02
8.0.00.0040.00417.07
7.4.330.0030.00315.55
7.4.320.0030.00316.46
7.4.300.0000.00616.46
7.4.290.0000.00716.30
7.4.280.0040.00416.28
7.4.270.0040.00416.37
7.4.260.0050.00013.27
7.4.250.0070.00016.25
7.4.240.0000.00716.39
7.4.230.0040.00316.45
7.4.220.0060.00116.38
7.4.210.0040.00316.38
7.4.200.0060.00116.34
7.4.190.0040.00316.37
7.4.180.0030.00416.52
7.4.160.0040.00316.38
7.4.150.0030.00416.35
7.4.140.0060.00216.33
7.4.130.0030.00416.11
7.4.120.0020.00416.20
7.4.110.0040.00316.20
7.4.100.0020.00516.29
7.4.90.0040.00416.32
7.4.80.0040.00316.24
7.4.70.0030.00416.19
7.4.60.0020.00516.14
7.4.50.0010.00616.12
7.4.40.0040.00316.16
7.4.30.0040.00316.24
7.4.20.0030.00416.24
7.4.10.0040.00316.23
7.4.00.0020.00516.26
7.3.330.0030.00316.23
7.3.320.0000.00613.07
7.3.310.0070.00016.21
7.3.300.0020.00516.14
7.3.290.0030.00516.12
7.3.280.0030.00416.15
7.3.270.0020.00416.08
7.3.260.0040.00316.10
7.3.250.0030.00516.12
7.3.240.0020.00516.12
7.3.230.0040.00316.16
7.3.220.0030.00516.06
7.3.210.0050.00316.12
7.3.200.0010.00616.06
7.3.190.0020.00616.13
7.3.180.0040.00416.09
7.3.170.0050.00216.10
7.3.160.0050.00315.98
7.3.150.0040.00316.13
7.3.140.0020.00416.08
7.3.130.0020.00516.04
7.3.120.0040.00216.05
7.3.110.0030.00416.01
7.3.100.0000.00715.92
7.3.90.0030.00516.38
7.3.80.0050.00216.02
7.3.70.0020.00516.18
7.3.60.0030.00416.21
7.3.50.0050.00216.19
7.3.40.0020.00616.18
7.3.30.0030.00316.19
7.3.20.0040.00416.25
7.3.10.0030.00516.18
7.3.00.0040.00416.07

preferences:
31.33 ms | 403 KiB | 5 Q