3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function method() { } } class B extends A { public function method() { } } class C { public function method() { } } class D { } $fn = Closure::fromCallable([new A, 'method']); $fn->call(new B); // error $fn->call(new C); // error $fn->call(new D); // error ?>

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.70.0080.01018.68
8.5.60.0110.00516.64
8.5.50.0070.00816.70
8.5.30.0090.00818.22
8.5.20.0070.01020.09
8.5.10.0090.00816.82
8.5.00.0150.00720.20
8.4.220.0140.00619.73
8.4.210.0090.00319.57
8.4.180.0140.00819.75
8.4.170.0140.00723.87
8.4.160.0130.00821.99
8.4.150.0090.00416.90
8.4.140.0120.01017.61
8.4.130.0100.00918.05
8.4.120.0110.00920.47
8.4.110.0390.01217.72
8.4.100.0330.01118.07
8.4.90.0430.00717.55
8.4.80.0450.00518.15
8.4.70.0340.00717.61
8.4.60.0430.00717.86
8.4.50.0400.01017.89
8.4.40.0330.00517.61
8.4.30.0360.00817.64
8.4.20.0380.01117.48
8.4.10.0420.01217.75
8.3.310.0110.00918.36
8.3.300.0120.00820.77
8.3.290.0140.00720.79
8.3.280.0140.00618.50
8.3.270.0120.00716.55
8.3.260.0110.00716.45
8.3.250.0100.00617.14
8.3.240.0290.01017.19
8.3.230.0160.00516.71
8.3.220.0400.00616.50
8.3.210.0370.01016.07
8.3.200.0410.00716.40
8.3.190.0380.00916.83
8.3.180.0400.01016.39
8.3.170.0220.00916.55
8.3.160.0290.00616.31
8.3.150.0180.00616.59
8.3.140.0260.00616.39
8.3.130.0380.00716.79
8.3.120.0340.00616.44
8.3.110.0350.01016.20
8.3.100.0450.00816.20
8.3.90.0430.00616.66
8.3.80.0420.00916.52
8.3.70.0380.00816.60
8.3.60.0290.00516.70
8.3.50.0150.00716.74
8.3.40.0200.00317.57
8.3.30.0130.00517.55
8.3.20.0150.00417.36
8.3.10.0320.00817.44
8.3.00.0190.00917.46
8.2.300.0120.00820.27
8.2.290.0330.00916.37
8.2.280.0320.00717.04
8.2.270.0150.00716.50
8.2.260.0260.00616.62
8.2.250.0150.00416.41
8.2.240.0160.00316.79
8.2.230.0200.00316.14
8.2.220.0210.00516.61
8.2.210.0180.00616.29
8.2.200.0150.00316.57
8.2.190.0260.00816.49
8.2.180.0280.00816.77
8.2.170.0210.00417.65
8.2.160.0220.00917.61
8.2.150.0360.00917.14
8.2.140.0320.00417.18
8.2.130.0230.00417.32
8.2.120.0170.00617.55
8.2.110.0380.00617.18
8.2.100.0300.01217.54
8.2.90.0270.01017.63
8.2.80.0340.00817.54
8.2.70.0320.00817.58
8.2.60.0340.00817.31
8.2.50.0320.00917.41
8.2.40.0380.00717.38
8.2.30.0330.00817.47
8.2.20.0330.00717.57
8.2.10.0290.01017.20
8.2.00.0280.01017.39
8.1.340.0140.00621.86
8.1.330.0330.01016.11
8.1.320.0230.00415.91
8.1.310.0210.00515.79
8.1.300.0320.00815.90
8.1.290.0290.01016.04
8.1.280.0280.01016.24
8.1.270.0420.00917.01
8.1.260.0340.01017.35
8.1.250.0330.00817.08
8.1.240.0300.00917.24
8.1.230.0310.00817.10
8.1.220.0320.00617.14
8.1.210.0310.00716.88
8.1.200.0300.00817.31
8.1.190.0280.00616.99
8.1.180.0140.00416.98
8.1.170.0290.00317.20
8.1.160.0290.01017.02
8.1.150.0270.01116.83
8.1.140.0340.00516.86
8.1.130.0300.00817.04
8.1.120.0340.00616.71
8.1.110.0260.00917.01
8.1.100.0290.00817.10
8.1.90.0300.00817.07
8.1.80.0350.00617.14
8.1.70.0290.00917.07
8.1.60.0300.01017.10
8.1.50.0280.01017.32
8.1.40.0270.00717.32
8.1.30.0130.00417.22
8.1.20.0310.00717.54
8.1.10.0320.00517.27
8.1.00.0310.00516.91
8.0.300.0290.00916.66
8.0.290.0330.00616.59
8.0.280.0550.00516.52
8.0.270.0410.00716.50
8.0.260.0340.01016.32
8.0.250.0330.00816.62
8.0.240.0340.00716.74
8.0.230.0150.00316.82
8.0.220.0140.00316.70
8.0.210.0320.00616.38
8.0.200.0290.00616.79
8.0.190.0290.00916.84
8.0.180.0300.00816.61
8.0.170.0230.00316.66
8.0.160.0320.01116.75
8.0.150.0270.01016.69
8.0.140.0300.00516.68
8.0.130.0290.00616.75
8.0.120.0150.00316.69
8.0.110.0210.00516.63
8.0.100.0130.00816.61
8.0.90.0330.00716.43
8.0.80.0340.00716.23
8.0.70.0190.00716.59
8.0.60.0140.00316.70
8.0.50.0140.00416.64
8.0.30.0220.00516.56
8.0.20.0310.00816.71
8.0.10.0310.00816.75
8.0.00.0300.00816.90
7.4.330.0310.00516.57
7.4.320.0280.00916.06
7.4.300.0380.00716.39
7.4.290.0360.00416.08
7.4.280.0270.00916.05
7.4.270.0320.00416.40
7.4.260.0210.00416.35
7.4.250.0140.00316.39
7.4.240.0120.00416.16
7.4.230.0310.00516.53
7.4.220.0280.00416.45
7.4.210.0340.00216.41
7.4.200.0220.00316.39
7.4.190.0150.00816.43
7.4.180.0320.00516.45
7.4.160.0290.00816.30
7.4.150.0300.00716.14
7.4.140.0280.00716.05
7.4.130.0330.00816.20
7.4.120.0140.00416.23
7.4.110.0120.00416.41
7.4.100.0140.00316.29
7.4.90.0110.00516.30
7.4.80.0130.00316.12
7.4.70.0130.00216.19
7.4.60.0140.00916.14
7.4.50.0270.01116.09
7.4.40.0290.00716.00
7.4.30.0170.00616.32
7.4.20.0140.00316.03
7.4.10.0120.00516.40
7.4.00.0130.00316.20
7.3.330.0250.00716.01
7.3.320.0250.01016.03
7.3.310.0260.00716.01
7.3.300.0250.00815.89
7.3.290.0160.00516.11
7.3.280.0350.00716.05
7.3.270.0370.00616.10
7.3.260.0220.00716.07
7.3.250.0330.00516.11
7.3.240.0330.00516.07
7.3.230.0280.00615.94
7.3.220.0300.00616.01
7.3.210.0290.00715.88
7.3.200.0270.00916.02
7.3.190.0280.00915.85
7.3.180.0310.00415.78
7.3.170.0270.00815.89
7.3.160.0310.00515.80
7.3.150.0280.00815.95
7.3.140.0220.00216.01
7.3.130.0150.00216.10
7.3.120.0130.00616.01
7.3.110.0120.00415.88
7.3.100.0130.00215.89
7.3.90.0120.00616.01
7.3.80.0150.00116.10
7.3.70.0280.00716.14
7.3.60.0250.00716.09
7.3.50.0280.00716.10
7.3.40.0280.00715.78
7.3.30.0260.00916.14
7.3.20.0280.00817.96
7.3.10.0330.00417.97
7.3.00.0320.00518.09
7.2.340.0180.00316.25
7.2.330.0260.00816.11
7.2.320.0310.00516.19
7.2.310.0350.00516.14
7.2.300.0300.01215.95
7.2.290.0320.00616.32
7.2.280.0220.00416.23
7.2.270.0260.00916.26
7.2.260.0170.00616.02
7.2.250.0170.00116.06
7.2.240.0120.00415.90
7.2.230.0140.00316.19
7.2.220.0140.01016.16
7.2.210.0290.00616.16
7.2.200.0330.00816.11
7.2.190.0270.00616.08
7.2.180.0210.00316.31
7.2.170.0260.00916.13
7.2.160.0280.00516.46
7.2.150.0340.00518.00
7.2.140.0250.00717.96
7.2.130.0160.00218.29
7.2.120.0260.00317.88
7.2.110.0170.00818.12
7.2.100.0200.00618.07
7.2.90.0290.00618.20
7.2.80.0310.00818.00
7.2.70.0330.00618.27
7.2.60.0370.00218.27
7.2.50.0300.01018.18
7.2.40.0210.00418.18
7.2.30.0240.00518.26
7.2.20.0130.00718.09
7.2.10.0130.00618.20
7.2.00.0260.00618.40
7.1.330.0100.00617.04
7.1.320.0130.00316.99
7.1.310.0150.00516.93
7.1.300.0260.00816.99
7.1.290.0360.00416.79
7.1.280.0340.00517.13
7.1.270.0300.00916.91
7.1.260.0320.00516.83
7.1.250.0300.00517.02
7.1.240.0340.00517.05
7.1.230.0290.00517.26
7.1.220.0300.00517.04
7.1.210.0290.00516.95
7.1.200.0290.00617.15
7.1.190.0290.00617.09
7.1.180.0310.00417.00
7.1.170.0290.00617.02
7.1.160.0260.00816.82
7.1.150.0280.00716.73
7.1.140.0300.00516.82
7.1.130.0260.00817.08
7.1.120.0260.00617.12
7.1.110.0170.00416.89
7.1.100.0310.00317.02
7.1.90.0270.00716.77
7.1.80.0230.00516.87
7.1.70.0120.00416.87
7.1.60.0120.00416.84
7.1.50.0130.00316.90
7.1.40.0120.00517.16
7.1.30.0120.00416.89
7.1.20.0260.00817.08
7.1.10.0250.00616.93
7.1.00.0300.00416.68
7.0.330.0280.00616.82
7.0.320.0300.00416.67
7.0.310.0300.00416.26
7.0.300.0310.00416.43
7.0.290.0260.00616.77
7.0.280.0210.01216.43
7.0.270.0270.00816.82
7.0.260.0270.00316.83
7.0.250.0290.00616.61
7.0.240.0300.00816.76
7.0.230.0310.00916.66
7.0.220.0310.00816.80
7.0.210.0330.01016.70
7.0.200.0270.00616.84
7.0.190.0170.00716.73
7.0.180.0130.00416.91
7.0.170.0120.00617.01
7.0.160.0290.00516.89
7.0.150.0260.00716.66
7.0.140.0240.01016.93
7.0.130.0250.00816.71
7.0.120.0270.00616.88
7.0.110.0270.00716.68
7.0.100.0230.01016.79
7.0.90.0220.00316.80
7.0.80.0270.00716.77
7.0.70.0280.00616.62
7.0.60.0270.00616.80
7.0.50.0280.00416.49
7.0.40.0270.00716.74
7.0.30.0260.00816.67
7.0.20.0170.00016.67
7.0.10.0170.00616.57
7.0.00.0220.00916.60
5.6.400.0200.00715.28
5.6.390.0140.00015.56
5.6.380.0160.00615.54
5.6.370.0290.00415.40
5.6.360.0250.01015.38
5.6.350.0220.00615.58
5.6.340.0180.00315.45
5.6.330.0240.00415.47
5.6.320.0260.00715.63
5.6.310.0230.01015.55
5.6.300.0240.01015.34
5.6.290.0240.00615.48
5.6.280.0250.00415.59
5.6.270.0190.01115.50
5.6.260.0220.00715.50
5.6.250.0210.00915.32
5.6.240.0150.00415.40
5.6.230.0120.00415.76
5.6.220.0280.00915.78
5.6.210.0230.01015.72
5.6.200.0230.00115.59
5.6.190.0240.00615.37
5.6.180.0180.00215.56
5.6.170.0280.00715.45
5.6.160.0250.00515.61
5.6.150.0260.00715.62
5.6.140.0270.00615.58
5.6.130.0280.00615.61
5.6.120.0250.00615.50
5.6.110.0180.00415.51
5.6.100.0210.00815.28
5.6.90.0220.00615.42
5.6.80.0220.00615.72
5.6.70.0250.00715.40
5.6.60.0240.00715.65
5.6.50.0280.00315.41
5.6.40.0260.00415.74
5.6.30.0270.00415.55
5.6.20.0230.00815.32
5.6.10.0240.00715.31
5.6.00.0380.00515.47
5.5.380.0260.00615.63
5.5.370.0220.00615.68
5.5.360.0200.01115.08
5.5.350.0270.00515.22
5.5.340.0240.00815.39
5.5.330.0280.00415.52
5.5.320.0260.00615.48
5.5.310.0260.00515.30
5.5.300.0260.00515.23
5.5.290.0230.00815.14
5.5.280.0220.00915.43
5.5.270.0260.00515.48
5.5.260.0260.00515.36
5.5.250.0260.00415.72
5.5.240.0190.00515.54
5.5.230.0250.00715.49
5.5.220.0230.00815.51
5.5.210.0260.00415.66
5.5.200.0270.00415.27
5.5.190.0290.00515.46
5.5.180.0320.00415.20
5.5.170.0270.00815.39
5.5.160.0250.00715.29
5.5.150.0250.00915.27
5.5.140.0250.00515.06
5.5.130.0220.00915.38
5.5.120.0230.01015.18
5.5.110.0250.00615.54
5.5.100.0260.00415.50
5.5.90.0170.01315.50
5.5.80.0250.00615.30
5.5.70.0200.01115.54
5.5.60.0240.00615.29
5.5.50.0250.00315.48
5.5.40.0220.00815.40
5.5.30.0250.00515.43
5.5.20.0160.00415.15
5.5.10.0240.00515.21
5.5.00.0220.00815.44
5.4.450.0210.00413.75
5.4.440.0190.00313.75
5.4.430.0210.00413.75
5.4.420.0200.00913.75
5.4.410.0220.00313.75
5.4.400.0100.00113.75
5.4.390.0090.00313.75
5.4.380.0180.00313.75
5.4.370.0160.00913.75
5.4.360.0190.00613.75
5.4.350.0200.00413.75
5.4.340.0190.00513.75
5.4.330.0190.00513.75
5.4.320.0180.00513.75
5.4.310.0220.00313.75
5.4.300.0170.00713.75
5.4.290.0200.00413.75
5.4.280.0160.00813.75
5.4.270.0230.00213.75
5.4.260.0190.00513.75
5.4.250.0200.00513.75
5.4.240.0220.00213.75
5.4.230.0190.00513.75
5.4.220.0210.00313.75
5.4.210.0180.00613.75
5.4.200.0210.00613.75
5.4.190.0200.00413.75
5.4.180.0210.00413.75
5.4.170.0160.00813.75
5.4.160.0190.00413.75
5.4.150.0180.00613.75
5.4.140.0250.00413.75
5.4.130.0150.00813.75
5.4.120.0180.00413.75
5.4.110.0190.00513.75
5.4.100.0220.00413.75
5.4.90.0200.00413.75
5.4.80.0190.00813.75
5.4.70.0210.00213.75
5.4.60.0190.00813.75
5.4.50.0090.00313.75
5.4.40.0160.00413.75
5.4.30.0180.00413.75
5.4.20.0160.00613.75
5.4.10.0140.00413.75
5.4.00.0070.00313.75
5.3.290.0090.00213.75
5.3.280.0080.00313.75
5.3.270.0070.00413.75
5.3.260.0070.00413.75
5.3.250.0080.00413.75
5.3.240.0090.00313.75
5.3.230.0220.00313.75
5.3.220.0170.00713.75
5.3.210.0170.00713.75
5.3.200.0220.00413.75
5.3.190.0180.00613.75
5.3.180.0190.00613.75
5.3.170.0180.00313.75
5.3.160.0200.00513.75
5.3.150.0170.00313.75
5.3.140.0200.00413.75
5.3.130.0200.00413.75
5.3.120.0200.00413.75
5.3.110.0190.00713.75
5.3.100.0180.00513.75
5.3.90.0170.00513.75
5.3.80.0170.00313.75
5.3.70.0190.00213.75
5.3.60.0170.00513.75
5.3.50.0180.00513.75
5.3.40.0170.00713.75
5.3.30.0200.00413.75
5.3.20.0190.00413.75
5.3.10.0200.00513.75
5.3.00.0170.00613.75
5.2.170.0130.00613.75
5.2.160.0160.00413.75
5.2.150.0110.00413.75
5.2.140.0070.00213.75
5.2.130.0120.00713.75
5.2.120.0150.00513.75
5.2.110.0050.00313.75
5.2.100.0070.00413.75
5.2.90.0190.00413.75
5.2.80.0170.00313.75
5.2.70.0230.00313.75
5.2.60.0120.00813.75
5.2.50.0180.00213.75
5.2.40.0160.00613.75
5.2.30.0190.00113.75
5.2.20.0140.00613.75
5.2.10.0180.00413.75
5.2.00.0170.00313.75
5.1.60.0140.00413.75
5.1.50.0110.00413.75
5.1.40.0150.00613.75
5.1.30.0150.00313.75
5.1.20.0100.00513.75
5.1.10.0160.00213.75
5.1.00.0140.00413.75
5.0.50.0110.00513.75
5.0.40.0140.00213.75
5.0.30.0120.00313.75
5.0.20.0100.00513.75
5.0.10.0120.00313.75
5.0.00.0110.00213.75
4.4.90.0050.00213.75
4.4.80.0070.00213.75
4.4.70.0070.00213.75
4.4.60.0100.00013.75
4.4.50.0090.00013.75
4.4.40.0080.00113.75
4.4.30.0090.00013.75
4.4.20.0080.00113.75
4.4.10.0070.00113.75
4.4.00.0070.00213.75
4.3.110.0050.00313.75
4.3.100.0090.00113.75
4.3.90.0070.00213.75
4.3.80.0060.00313.75
4.3.70.0070.00213.75
4.3.60.0090.00013.75
4.3.50.0080.00113.75
4.3.40.0080.00113.75
4.3.30.0060.00113.75
4.3.20.0050.00213.75
4.3.10.0060.00013.75
4.3.00.0040.00213.75

preferences:
81.32 ms | 2800 KiB | 5 Q