3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { } class B extends A { } interface AI { public function test(B $a); } class Run implements AI { public function test(A $b) { return; } }

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.5.30.0090.00819.39
8.5.20.0100.00617.59
8.5.10.0080.00316.61
8.5.00.0140.00820.02
8.4.180.0110.01023.83
8.4.170.0120.01223.79
8.4.160.0140.00723.90
8.4.150.0060.00616.80
8.4.140.0130.00817.40
8.4.130.0110.00622.08
8.4.120.0110.00822.51
8.4.110.0100.00922.52
8.4.100.0160.00417.55
8.4.90.0150.00617.37
8.4.80.0100.00817.89
8.4.70.0080.00317.47
8.4.60.0100.01118.73
8.4.50.0120.00918.95
8.4.40.0130.00618.39
8.4.30.0150.00422.58
8.4.20.0060.01322.60
8.4.10.0030.00623.73
8.3.300.0090.01122.64
8.3.290.0100.00918.29
8.3.280.0110.00918.28
8.3.270.0120.00716.35
8.3.260.0100.00316.41
8.3.250.0090.00918.88
8.3.240.0150.00516.97
8.3.230.0110.00616.43
8.3.220.0090.00917.30
8.3.210.0110.00716.82
8.3.200.0050.00316.51
8.3.190.0130.00518.86
8.3.180.0080.01116.64
8.3.170.0070.00719.03
8.3.160.0070.01117.38
8.3.150.0160.00317.21
8.3.140.0140.00416.72
8.3.130.0120.00816.68
8.3.120.0150.00320.71
8.3.110.0060.00318.23
8.3.100.0080.00016.65
8.3.90.0080.00026.77
8.3.80.0090.00018.36
8.3.70.0160.00316.63
8.3.60.0090.00916.38
8.3.50.0070.01016.49
8.3.40.0120.00621.90
8.3.30.0070.00720.17
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.300.0130.00618.07
8.2.290.0060.00220.57
8.2.280.0100.00818.14
8.2.270.0040.01117.08
8.2.260.0040.00416.57
8.2.250.0060.01216.46
8.2.240.0000.00816.91
8.2.230.0080.00020.94
8.2.220.0030.00624.06
8.2.210.0070.00726.77
8.2.200.0090.00316.25
8.2.190.0090.01218.29
8.2.180.0110.00425.92
8.2.170.0090.00622.96
8.2.160.0140.00722.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0000.00821.02
8.2.110.0100.00019.34
8.2.100.0060.00617.72
8.2.90.0060.01218.77
8.2.80.0090.00918.77
8.2.70.0120.00518.77
8.2.60.0130.00318.77
8.2.50.0140.00618.77
8.2.40.0170.00018.77
8.2.30.0140.00418.77
8.2.20.0100.00718.77
8.2.10.0150.00318.77
8.2.00.0110.00618.77
8.1.340.0150.00717.54
8.1.330.0100.01121.69
8.1.320.0130.00716.04
8.1.310.0110.00718.21
8.1.300.0060.00318.35
8.1.290.0110.00030.84
8.1.280.0140.00425.92
8.1.270.0000.00824.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.51
8.1.230.0100.00323.93
8.1.220.0130.00718.77
8.1.210.0090.00918.77
8.1.200.0150.00218.77
8.1.190.0150.00418.77
8.1.180.0090.00818.77
8.1.170.0090.00918.77
8.1.160.0120.00418.77
8.1.150.0130.00418.77
8.1.140.0090.00918.77
8.1.130.0040.01518.77
8.1.120.0070.01018.77
8.1.110.0130.00518.77
8.1.100.0070.01018.77
8.1.90.0130.00318.77
8.1.80.0120.00318.77
8.1.70.0100.00718.77
8.1.60.0150.00318.77
8.1.50.0190.00318.77
8.1.40.0160.00518.77
8.1.30.0130.00618.77
8.1.20.0110.00718.77
8.1.10.0150.00518.77
8.1.00.0130.00318.77
8.0.300.0070.00018.77
8.0.290.0140.00318.77
8.0.280.0100.00718.77
8.0.270.0170.00018.77
8.0.260.0120.00418.77
8.0.250.0040.01318.77
8.0.240.0100.00718.77
8.0.230.0110.00518.77
8.0.220.0040.01218.77
8.0.210.0080.00818.77
8.0.200.0120.00418.77
8.0.190.0100.00518.77
8.0.180.0110.00718.77
8.0.170.0130.00418.77
8.0.160.0050.01218.77
8.0.150.0130.00418.77
8.0.140.0110.00518.77
8.0.130.0110.00618.77
8.0.120.0120.00618.77
8.0.110.0110.00618.77
8.0.100.0140.00318.77
8.0.90.0120.00518.77
8.0.80.0130.00318.77
8.0.70.0090.00918.77
8.0.60.0100.00718.77
8.0.50.0130.00318.77
8.0.30.0120.00818.77
8.0.20.0160.00018.77
8.0.10.0110.00618.77

preferences:
83 ms | 1089 KiB | 5 Q