3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public static function a(); public static function b($arg); } abstract class Base implements Foo { public static function a() { return __FUNCTION__ . '(' . __LINE__ . ')'; } } class Concrete extends Base { public static function b($arg) { return array(__FUNCTION__, __LINE__, $arg); } } var_dump(Concrete::a()); // works var_dump(Base::a()); // works var_dump(Concrete::b(__LINE__)); // works var_dump(Base::b(__LINE__)); // can't call an abstract method

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.20.0130.00719.79
8.4.10.0090.00019.73
8.3.150.0060.01317.12
8.3.140.0030.00620.78
8.3.130.0060.00318.57
8.3.120.0100.00018.86
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0240.01130.84
8.3.70.0360.00830.84
8.3.60.0330.01230.84
8.3.50.0180.00430.84
8.3.40.0220.00930.84
8.3.30.0270.00530.84
8.3.20.0220.00830.84
8.3.10.0240.00830.84
8.3.00.0250.00530.84
8.2.260.0040.01418.23
8.2.250.0090.00618.37
8.2.240.0040.00417.01
8.2.230.0040.00822.58
8.2.220.0040.00437.54
8.2.210.0060.01226.77
8.2.200.0290.00530.84
8.2.190.0170.00630.84
8.2.180.0180.00730.84
8.2.170.0280.00730.84
8.2.160.0290.00630.84
8.2.150.0190.00830.84
8.2.140.0220.00330.84
8.2.130.0200.00030.84
8.2.120.0130.00730.84
8.2.110.0190.00330.84
8.2.100.0230.00630.84
8.2.90.0230.00830.84
8.2.80.0230.00630.84
8.2.70.0270.00430.84
8.2.60.0250.00330.84
8.2.50.0300.00230.84
8.2.40.0230.00930.84
8.2.30.0240.00630.84
8.2.20.0210.00830.84
8.2.10.0230.00630.84
8.2.00.0170.01230.84
8.1.310.0090.00916.73
8.1.300.0110.00419.65
8.1.290.0250.00430.84
8.1.280.0160.00430.84
8.1.270.0200.00630.84
8.1.260.0170.00330.84
8.1.250.0270.00630.84
8.1.240.0280.00930.84
8.1.230.0240.00530.84
8.1.220.0180.00930.84
8.1.210.0250.00830.84
8.1.200.0300.00630.84
8.1.190.0200.00830.84
8.1.180.0180.01030.84
8.1.170.0310.00630.84
8.1.160.0290.00830.84
8.1.150.0270.01130.84
8.1.140.0320.00430.84
8.1.130.0310.00830.84
8.1.120.0290.01130.84
8.1.110.0210.01630.84
8.1.100.0270.01030.84
8.1.90.0250.01130.84
8.1.80.0270.00630.84
8.1.70.0400.00630.84
8.1.60.0290.01630.84
8.1.50.0360.00830.84
8.1.40.0320.00930.84
8.1.30.0320.00730.84
8.1.20.0360.00530.84
8.1.10.0320.00430.84
8.1.00.0130.00530.84
8.0.300.0180.00030.84
8.0.290.0100.01030.84
8.0.280.0140.01430.84
8.0.270.0140.00530.84
8.0.260.0160.00330.84
8.0.250.0110.00830.84
8.0.240.0110.00930.84
8.0.230.0150.00530.84
8.0.220.0140.00530.84
8.0.210.0170.00330.84
8.0.200.0150.00430.84
8.0.190.0120.00630.84
8.0.180.0130.00430.84
8.0.170.0150.00330.84
8.0.160.0180.00330.84
8.0.150.0120.00930.84
8.0.140.0170.00630.84
8.0.130.0120.00630.84
8.0.120.0130.00630.84
8.0.110.0120.00630.84
8.0.100.0150.00430.84
8.0.90.0170.00230.84
8.0.80.0160.00630.84
8.0.70.0150.00530.84
8.0.60.0150.00530.84
8.0.50.0190.00030.84
8.0.30.0190.00030.84
8.0.20.0130.00630.84
8.0.10.0150.00430.84
8.0.00.0210.00930.84
7.4.330.0200.00730.84
7.4.320.0280.00730.84
7.4.300.0160.00430.84
7.4.290.0270.00030.84
7.4.280.0180.00430.84
7.4.270.0170.00030.84
7.4.260.0150.00330.84
7.4.250.0140.00730.84
7.4.240.0170.00330.84
7.4.230.0060.01230.84
7.4.220.0120.00630.84
7.4.210.0140.00530.84
7.4.200.0150.00230.84
7.4.190.0150.00230.84
7.4.180.0170.00030.84
7.4.160.0090.00930.84
7.4.150.0120.00630.84
7.4.140.0150.00230.84
7.4.130.0130.00430.84
7.4.120.0150.00430.84
7.4.110.0100.00830.84
7.4.100.0120.00530.84
7.4.90.0130.00430.84
7.4.80.0270.00430.84
7.4.70.0380.00030.84
7.4.60.0340.00330.84
7.4.50.0350.00030.84
7.4.40.0280.00730.84
7.4.30.0270.00630.84
7.4.20.0160.00330.84
7.4.10.0200.00030.84
7.4.00.0140.00030.84
7.3.330.0140.00330.84
7.3.320.0140.00330.84
7.3.310.0180.00030.84
7.3.300.0100.00530.84
7.3.290.0130.00230.84
7.3.280.0110.00430.84
7.3.270.0150.00030.84
7.3.260.0110.00430.84
7.3.250.0320.00030.84
7.3.240.0260.00930.84
7.3.230.0240.00330.84
7.3.220.0100.00630.84
7.3.210.0170.00030.84
7.3.200.0160.00230.84
7.3.190.0100.00730.84
7.3.180.0110.00530.84
7.3.170.0120.00430.84
7.3.160.0160.00030.84
7.3.150.0110.00530.84
7.3.140.0130.00330.84
7.3.130.0160.00030.84
7.3.120.0090.00630.84
7.3.110.0150.00030.84
7.3.100.0110.00430.84
7.3.90.0150.00030.84
7.3.80.0160.00030.84
7.3.70.0180.00530.84
7.3.60.0300.00630.84
7.3.50.0380.01130.84
7.3.40.0370.00730.84
7.3.30.0200.00830.84
7.3.20.0330.00330.84
7.3.10.0240.00730.84
7.3.00.0250.00330.84
7.2.340.0250.01130.84
7.2.330.0350.00030.84
7.2.320.0230.01130.84
7.2.310.0340.00030.84
7.2.300.0340.00030.84
7.2.290.0280.00830.84
7.2.280.0340.00430.84
7.2.270.0290.00730.84
7.2.260.0200.00830.84
7.2.250.0200.02030.84
7.2.240.0300.01230.84
7.2.230.0310.00730.84
7.2.220.0320.00430.84
7.2.210.0270.00730.84
7.2.200.0280.00930.84
7.2.190.0300.00930.84
7.2.180.0330.00430.84
7.2.170.0210.00630.84
7.2.160.0190.00430.84
7.2.150.0270.00630.84
7.2.140.0220.00830.84
7.2.130.0220.00530.84
7.2.120.0300.00330.84
7.2.110.0320.00430.84
7.2.100.0310.00430.84
7.2.90.0260.01230.84
7.2.80.0350.00030.84
7.2.70.0340.00030.84
7.2.60.0230.01230.84
7.2.50.0220.00930.84
7.2.40.0190.01030.84
7.2.30.0250.00330.84
7.2.20.0150.00530.84
7.2.10.0210.00730.84
7.2.00.0120.00330.84
7.1.330.0170.00030.84
7.1.320.0150.00430.84
7.1.310.0160.00030.84
7.1.300.0070.00730.84
7.1.290.0140.00930.84
7.1.280.0260.01130.84
7.1.270.0230.00830.84
7.1.260.0260.00330.84
7.1.250.0230.00330.84
7.1.240.0360.00430.84
7.1.230.0200.01230.84
7.1.220.0280.00430.84
7.1.210.0250.00730.84
7.1.200.0170.01430.84
7.1.190.0220.01130.84
7.1.180.0270.00330.84
7.1.170.0220.00830.84
7.1.160.0220.00930.84
7.1.150.0290.01030.84
7.1.140.0250.01330.84
7.1.130.0240.00930.84
7.1.120.0250.00430.84
7.1.110.0210.00430.84
7.1.100.0200.00530.84
7.1.90.0190.01230.84
7.1.80.0190.01030.84
7.1.70.0170.00830.84
7.1.60.0270.00430.84
7.1.50.0280.00330.84
7.1.40.0240.00630.84
7.1.30.0240.00730.84
7.1.20.0240.00730.84
7.1.10.0250.00730.84
7.1.00.0270.00530.84
7.0.330.0240.00630.84
7.0.320.0150.01530.84
7.0.310.0260.00330.84
7.0.300.0330.00030.84
7.0.290.0230.01030.84
7.0.280.0250.01130.84
7.0.270.0070.01030.84
7.0.260.0140.00030.84
7.0.250.0080.00830.84
7.0.240.0070.00730.84
7.0.230.0090.00430.84
7.0.220.0040.00930.84
7.0.210.0110.00530.84
7.0.200.0150.00030.84
7.0.190.0070.00730.84
7.0.180.0100.00330.84
7.0.170.0090.00430.84
7.0.160.0140.00030.84
7.0.150.0130.00830.84
7.0.140.0150.00930.84
7.0.130.0180.00730.84
7.0.120.0230.00730.84
7.0.110.0230.00730.84
7.0.100.0240.00730.84
7.0.90.0250.00730.84
7.0.80.0250.00930.84
7.0.70.0210.00930.84
7.0.60.0290.00330.84
7.0.50.0210.00930.84
7.0.40.0250.00630.84
7.0.30.0260.01230.84
7.0.20.0490.00030.84
7.0.10.0290.00330.84
7.0.00.0240.00030.84
5.6.400.0140.01130.84
5.6.390.0180.00630.84
5.6.380.0220.00330.84
5.6.370.0220.00330.84
5.6.360.0230.01030.84
5.6.350.0230.00830.84
5.6.340.0270.00330.84
5.6.330.0210.01130.84
5.6.320.0210.01030.84
5.6.310.0350.00030.84
5.6.300.0270.00330.84
5.6.290.0240.01530.84
5.6.280.0240.00530.84
5.6.270.0270.00330.84
5.6.260.0320.00030.84
5.6.250.0120.00630.84
5.6.240.0120.00330.84
5.6.230.0100.00530.84
5.6.220.0180.00030.84
5.6.210.0130.00330.84
5.6.200.0110.00630.84
5.6.190.0090.00630.84
5.6.180.0090.00530.84
5.6.170.0080.00530.84
5.6.160.0110.00330.84
5.6.150.0130.00430.84
5.6.140.0150.00030.84
5.6.130.0070.00730.84
5.6.120.0140.00030.84
5.6.110.0000.01430.84
5.6.100.0080.00630.84
5.6.90.0140.00030.84
5.6.80.0130.00030.84
5.6.70.0080.00530.84
5.6.60.0140.00030.84
5.6.50.0040.00930.84
5.6.40.0130.00030.84
5.6.30.0100.00330.84
5.6.20.0230.00830.84
5.6.10.0200.00630.84
5.6.00.0130.00730.84
5.5.380.0260.00430.84
5.5.370.0100.00330.84
5.5.360.0170.01330.84
5.5.350.0220.00730.84
5.5.340.0230.00730.84
5.5.330.0160.00330.84
5.5.320.0100.00330.84
5.5.310.0250.00730.84
5.5.300.0250.00430.84
5.5.290.0310.00330.84
5.5.280.0210.00430.84
5.5.270.0120.00230.84
5.5.260.0140.00030.84
5.5.250.0100.00330.84
5.5.240.0070.00730.84
5.5.230.0070.00730.84
5.5.220.0090.00430.84
5.5.210.0100.00330.84
5.5.200.0060.00630.84
5.5.190.0090.00430.84
5.5.180.0100.00330.84
5.5.170.0130.00030.84
5.5.160.0050.00930.84
5.5.150.0130.00030.84
5.5.140.0130.00030.84
5.5.130.0070.00730.84
5.5.120.0140.00030.84
5.5.110.0120.00230.84
5.5.100.0060.00630.84
5.5.90.0130.00030.84
5.5.80.0130.00030.84
5.5.70.0090.00430.84
5.5.60.0110.00230.84
5.5.50.0110.00330.84
5.5.40.0080.00530.84
5.5.30.0130.00030.84
5.5.20.0110.00330.84
5.5.10.0070.00730.84
5.5.00.0260.00330.84
5.4.450.0120.00830.84
5.4.440.0080.00330.84
5.4.430.0080.00430.84
5.4.420.0110.00030.84
5.4.410.0000.01030.84
5.4.400.0110.00030.84
5.4.390.0100.00030.84
5.4.380.0100.00030.84
5.4.370.0100.00030.84
5.4.360.0080.00430.84
5.4.350.0080.00430.84
5.4.340.0130.00030.84
5.4.330.0090.00430.84
5.4.320.0040.00930.84
5.4.310.0080.00330.84
5.4.300.0070.00330.84
5.4.290.0100.00030.84
5.4.280.0080.00330.84
5.4.270.0100.00030.84
5.4.260.0100.00030.84
5.4.250.0070.00330.84
5.4.240.0110.00030.84
5.4.230.0100.00030.84
5.4.220.0100.00030.84
5.4.210.0100.00030.84
5.4.200.0100.00030.84
5.4.190.0100.00030.84
5.4.180.0100.00030.84
5.4.170.0080.00330.84
5.4.160.0070.00430.84
5.4.150.0030.00830.84
5.4.140.0050.00530.84
5.4.130.0110.00030.84
5.4.120.0050.00530.84
5.4.110.0140.00030.84
5.4.100.0070.00330.84
5.4.90.0100.00030.84
5.4.80.0100.00030.84
5.4.70.0080.00230.84
5.4.60.0100.00030.84
5.4.50.0100.00030.84
5.4.40.0070.00330.84
5.4.30.0030.00730.84
5.4.20.0050.00530.84
5.4.10.0050.00530.84
5.4.00.0100.00030.84
5.3.290.0100.00030.84
5.3.280.0100.00030.84
5.3.270.0050.00530.84
5.3.260.0050.00530.84
5.3.250.0050.00530.84
5.3.240.0080.00430.84
5.3.230.0110.00030.84
5.3.220.0100.00030.84
5.3.210.0100.00030.84
5.3.200.0050.00530.84
5.3.190.0100.00030.84
5.3.180.0100.00030.84
5.3.170.0080.00230.84
5.3.160.0080.00330.84
5.3.150.0080.00530.84
5.3.140.0150.00430.84
5.3.130.0110.00430.84
5.3.120.0030.00930.84
5.3.110.0100.01030.84
5.3.100.0180.00030.84
5.3.90.0120.00030.84
5.3.80.0120.00030.84
5.3.70.0070.00230.84
5.3.60.0100.00030.84
5.3.50.0070.00330.84
5.3.40.0100.00030.84
5.3.30.0030.00730.84
5.3.20.0070.00330.84
5.3.10.0110.00030.84
5.3.00.0110.00030.84
5.2.170.0070.00330.84
5.2.160.0100.00030.84
5.2.150.0040.00430.84
5.2.140.0050.00330.84
5.2.130.0080.00030.84
5.2.120.0040.00430.84
5.2.110.0050.00330.84
5.2.100.0060.00330.84
5.2.90.0070.00230.84
5.2.80.0000.00830.84
5.2.70.0000.00830.84
5.2.60.0080.00030.84
5.2.50.0080.00030.84
5.2.40.0080.00030.84
5.2.30.0080.00030.84
5.2.20.0080.00030.84
5.2.10.0080.00030.84
5.2.00.0080.00030.84
5.1.60.0030.00330.84
5.1.50.0070.00030.84
5.1.40.0000.00730.84
5.1.30.0000.00730.84
5.1.20.0050.00230.84
5.1.10.0050.00230.84
5.1.00.0000.00730.84
5.0.50.0060.00030.84
5.0.40.0060.00030.84
5.0.30.0060.00030.84
5.0.20.0060.00030.84
5.0.10.0060.00030.84
5.0.00.0060.00030.84
4.4.90.0000.00330.84
4.4.80.0000.00330.84
4.4.70.0000.00330.84
4.4.60.0030.00030.84
4.4.50.0000.00430.84
4.4.40.0030.00030.84
4.4.30.0000.00330.84
4.4.20.0030.00030.84
4.4.10.0030.00030.84
4.4.00.0000.00330.84
4.3.110.0050.00030.84
4.3.100.0050.00030.84
4.3.90.0050.00030.84
4.3.80.0040.00030.84
4.3.70.0040.00030.84
4.3.60.0000.00430.84
4.3.50.0060.00030.84
4.3.40.0060.00030.84
4.3.30.0000.00530.84
4.3.20.0050.00030.84
4.3.10.0040.00030.84
4.3.00.0000.00630.84

preferences:
39.7 ms | 403 KiB | 5 Q