3v4l.org

run code in 300+ PHP versions simultaneously
<?php function make() { class Foo { public static function getClass() { return function () { //return call_user_func(function () { return [__CLASS__, __METHOD__, __FUNCTION__]; //}); }; } } return new Foo(); } $foo = make(); var_dump(call_user_func($foo->getClass()));

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.70.0130.00316.58
8.3.60.0090.00616.75
8.3.50.0130.00822.12
8.3.40.0030.01218.84
8.3.30.0120.00318.82
8.3.20.0040.00420.34
8.3.10.0000.00823.36
8.3.00.0000.00721.02
8.2.180.0040.01116.75
8.2.170.0090.00622.96
8.2.160.0040.01120.43
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0060.00926.16
8.2.120.0080.00020.79
8.2.110.0080.00022.43
8.2.100.0040.00817.84
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00819.95
8.2.30.0000.00718.31
8.2.20.0030.00517.64
8.2.10.0040.00418.06
8.2.00.0050.00317.68
8.1.280.0030.01025.92
8.1.270.0090.00023.84
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00617.48
8.1.230.0060.00620.88
8.1.220.0050.00318.64
8.1.210.0050.00518.78
8.1.200.0040.00417.35
8.1.190.0090.00017.22
8.1.180.0050.00318.10
8.1.170.0040.00418.51
8.1.160.0000.00821.92
8.1.150.0040.00418.70
8.1.140.0040.00417.39
8.1.130.0030.00317.86
8.1.120.0000.00817.37
8.1.110.0040.00417.46
8.1.100.0000.00717.42
8.1.90.0040.00417.46
8.1.80.0000.00717.45
8.1.70.0030.00317.37
8.1.60.0000.00917.55
8.1.50.0030.00517.43
8.1.40.0000.00817.53
8.1.30.0040.00417.55
8.1.20.0040.00417.55
8.1.10.0000.00817.43
8.1.00.0040.00417.35
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0030.00318.34
8.0.270.0030.00317.25
8.0.260.0030.00317.25
8.0.250.0030.00316.83
8.0.240.0030.00316.95
8.0.230.0000.00716.96
8.0.220.0070.00016.93
8.0.210.0030.00616.89
8.0.200.0000.00616.93
8.0.190.0050.00316.93
8.0.180.0030.00516.91
8.0.170.0040.00416.90
8.0.160.0000.00816.93
8.0.150.0000.00716.79
8.0.140.0030.00516.86
8.0.130.0000.00613.35
8.0.120.0040.00416.93
8.0.110.0000.00716.93
8.0.100.0040.00416.75
8.0.90.0000.00716.69
8.0.80.0080.00816.79
8.0.70.0040.00416.77
8.0.60.0000.00816.78
8.0.50.0000.00916.94
8.0.30.0080.01316.99
8.0.20.0080.01317.40
8.0.10.0040.00416.85
8.0.00.0050.01216.67
7.4.330.0000.00515.00
7.4.320.0060.00016.42
7.4.300.0040.00416.48
7.4.290.0000.00716.41
7.4.280.0060.00316.56
7.4.270.0070.00016.60
7.4.260.0030.00316.57
7.4.250.0000.00716.45
7.4.240.0000.00816.47
7.4.230.0000.00716.63
7.4.220.0060.01216.71
7.4.210.0090.00416.61
7.4.200.0040.00416.43
7.4.190.0030.00616.46
7.4.160.0080.00816.44
7.4.150.0040.01317.40
7.4.140.0100.00717.86
7.4.130.0070.01016.55
7.4.120.0120.00516.49
7.4.110.0040.01316.63
7.4.100.0170.00016.59
7.4.90.0100.00716.59
7.4.80.0140.00419.39
7.4.70.0130.00316.41
7.4.60.0170.00316.68
7.4.50.0020.00216.35
7.4.40.0080.00816.60
7.4.30.0080.00816.54
7.4.00.0060.00614.75
7.3.330.0030.00313.22
7.3.320.0050.00013.15
7.3.310.0040.00416.16
7.3.300.0040.00416.21
7.3.290.0030.01016.31
7.3.280.0080.01016.27
7.3.270.0120.00417.40
7.3.260.0110.00516.33
7.3.250.0110.00816.34
7.3.240.0060.01316.52
7.3.230.0060.01116.39
7.3.210.0080.00916.56
7.3.200.0120.00319.39
7.3.190.0140.00316.22
7.3.180.0070.01316.29
7.3.170.0100.01016.29
7.3.160.0090.00616.50
7.3.120.0110.00314.86
7.3.110.0110.00414.39
7.3.100.0040.00815.05
7.3.90.0050.00514.78
7.3.80.0070.00714.82
7.3.70.0000.01314.89
7.3.60.0060.00614.86
7.3.50.0030.01314.73
7.3.40.0070.00714.39
7.3.30.0060.00914.91
7.3.20.0120.00616.64
7.3.10.0040.00716.37
7.3.00.0050.00816.70
7.2.330.0100.00716.78
7.2.320.0090.01316.54
7.2.310.0100.01016.82
7.2.300.0080.00816.78
7.2.290.0110.01116.48
7.2.240.0070.00714.77
7.2.230.0030.01014.78
7.2.220.0060.01214.69
7.2.210.0070.00715.27
7.2.200.0060.00615.22
7.2.190.0070.00714.71
7.2.180.0060.00915.13
7.2.170.0040.01414.97
7.2.160.0060.01215.11
7.2.150.0070.01116.76
7.2.140.0110.00716.88
7.2.130.0060.00916.76
7.2.120.0090.00616.83
7.2.110.0080.00716.71
7.2.100.0070.00916.75
7.2.90.0090.00916.88
7.2.80.0060.00516.98
7.2.70.0100.00816.89
7.2.60.0070.00917.01
7.2.50.0100.00817.02
7.2.40.0100.00816.80
7.2.30.0130.00316.97
7.2.20.0110.00616.80
7.2.10.0050.01017.02
7.2.00.0050.01017.82
7.1.330.0070.00715.93
7.1.320.0030.01115.43
7.1.310.0030.00715.41
7.1.300.0030.01015.46
7.1.290.0030.01015.64
7.1.280.0070.00415.73
7.1.270.0080.00815.60
7.1.260.0090.00615.64
7.1.250.0050.00815.69
7.1.240.0070.00715.71
7.1.230.0120.00015.44
7.1.220.0110.00315.76
7.1.210.0070.01115.59
7.1.200.0050.00915.65
7.1.190.0110.01115.66
7.1.180.0080.00915.34
7.1.170.0080.01515.33
7.1.160.0130.00915.63
7.1.150.0150.00015.42
7.1.140.0080.00815.62
7.1.130.0000.01515.72
7.1.120.0110.00315.45
7.1.110.0030.01015.71
7.1.100.0060.00816.68
7.1.90.0040.00815.74
7.1.80.0070.00715.61
7.1.70.0010.00916.30
7.1.60.0080.01017.71
7.1.50.0020.00816.26
7.1.40.0040.00715.67
7.1.30.0070.00715.75
7.1.20.0030.00715.37
7.1.10.0090.00615.60
7.1.00.0070.03819.04
7.0.330.0070.00315.39
7.0.320.0050.00915.35
7.0.310.0060.00915.45
7.0.300.0140.00315.11
7.0.290.0140.00815.29
7.0.280.0040.01314.96
7.0.270.0070.00715.32
7.0.260.0060.00615.03
7.0.250.0030.01115.26
7.0.240.0100.00015.40
7.0.230.0060.00615.19
7.0.220.0060.00314.98
7.0.210.0090.00615.39
7.0.200.0080.00415.85
7.0.190.0030.01015.09
7.0.180.0030.00915.30
7.0.170.0040.01115.36
7.0.160.0030.01015.16
7.0.150.0030.01015.39
7.0.140.0070.03818.62
7.0.130.0140.00015.17
7.0.120.0070.00315.36
7.0.110.0030.00715.42
7.0.100.0030.00715.41
7.0.90.0060.00615.23
7.0.80.0080.00415.51
7.0.70.0040.01115.26
7.0.60.0020.02717.65
7.0.50.0120.04116.48
7.0.40.0030.05016.63
7.0.30.0120.02816.80
7.0.20.0220.03116.73
7.0.10.0070.03016.86
7.0.00.0080.04616.70
5.6.380.0110.00513.99
5.6.370.0070.00714.15
5.6.360.0110.00314.02
5.6.350.0100.00713.76
5.6.340.0100.00613.97
5.6.330.0000.00914.42
5.6.320.0080.00614.41
5.6.310.0000.01314.15
5.6.300.0100.00614.12
5.6.290.0080.00414.42
5.6.280.0050.04217.76
5.6.270.0070.00714.57
5.6.260.0030.00814.27
5.6.250.0060.00614.29
5.6.240.0070.00714.45
5.6.230.0030.01314.03
5.6.220.0030.00914.30
5.6.210.0070.04517.39
5.6.200.0110.04016.24
5.6.190.0070.04217.49
5.6.180.0200.04217.22
5.6.170.0200.02817.30
5.6.160.0050.02517.38
5.6.150.0070.02716.19
5.6.140.0060.02816.21
5.6.130.0050.04816.30
5.6.120.0070.02817.79
5.6.110.0080.04717.82
5.6.100.0080.04317.53
5.6.90.0050.04117.67
5.6.80.0070.02317.46
5.6.70.0100.00714.24
5.6.60.0150.00314.00
5.6.50.0110.00414.13
5.6.40.0060.00614.36
5.6.30.0040.00413.95
5.6.20.0080.00314.00
5.6.10.0000.01014.30
5.6.00.0110.00014.07
5.5.380.0060.00311.18
5.5.370.0070.00311.18
5.5.360.0000.00911.18
5.5.350.0020.02515.83
5.5.340.0050.04414.58
5.5.330.0060.04315.76
5.5.320.0090.03815.69
5.5.310.0120.02415.77
5.5.300.0050.02614.71
5.5.290.0080.03814.59
5.5.280.0030.02716.05
5.5.270.0120.03516.01
5.5.260.0080.04115.97
5.5.250.0040.04615.88
5.5.240.1130.02015.67
5.5.230.0110.00311.18
5.5.220.0030.00711.18
5.5.210.0050.00311.18
5.5.200.0000.00911.18
5.5.190.0000.01011.18
5.5.180.0030.00611.18
5.5.170.0000.00611.18
5.5.160.0000.00811.18
5.5.150.0090.00311.18
5.5.140.0020.00511.18
5.5.130.0080.00011.28
5.5.120.0120.00011.18
5.5.110.0030.00511.18
5.5.100.0050.00211.18
5.5.90.0070.00011.18
5.5.80.0060.00311.18
5.5.70.0000.00711.18
5.5.60.0100.00011.18
5.5.50.0020.00511.18
5.5.40.0060.00311.18
5.5.30.0000.00711.24
5.5.20.0040.00711.18
5.5.10.0030.00611.18
5.5.00.0000.00811.18
5.4.450.0080.02315.35
5.4.440.0150.03115.36
5.4.430.0100.02215.22
5.4.420.0150.02415.32
5.4.410.0100.02615.34
5.4.400.0150.02015.16
5.4.390.0180.02015.09
5.4.380.0110.03114.96
5.4.370.0110.02814.88
5.4.360.0090.02914.99
5.4.350.0050.03514.99
5.4.340.0070.03214.96
5.4.330.0060.00011.18
5.4.320.0090.02411.84
5.4.310.0080.02211.84
5.4.300.0050.02311.85
5.4.290.0070.02011.86
5.4.280.0040.03311.79
5.4.270.0080.02511.79
5.4.260.0070.02211.79
5.4.250.0060.02011.79
5.4.240.0040.02211.79
5.4.230.0040.02111.79
5.4.220.0020.02311.79
5.4.210.0020.02411.79
5.4.200.0050.02011.79
5.4.190.0040.02211.79
5.4.180.0020.02211.78
5.4.170.0020.02411.79
5.4.160.0010.02511.79
5.4.150.0020.02311.79
5.4.140.0050.02111.63
5.4.130.0050.01911.62
5.4.120.0040.02011.60
5.4.110.0050.02311.60
5.4.100.0070.02411.60
5.4.90.0050.02311.60
5.4.80.0020.02611.60
5.4.70.0070.01811.60
5.4.60.0070.02311.59
5.4.50.0060.02811.60
5.4.40.0060.02711.59
5.4.30.0020.02211.59
5.4.20.0030.02211.59
5.4.10.0080.02411.59
5.4.00.0050.02111.33
5.3.290.0050.02811.99
5.3.280.0080.01911.94
5.3.270.0040.02211.95
5.3.260.0070.02111.95
5.3.250.0070.02011.95
5.3.240.0060.02011.95
5.3.230.0040.02311.94
5.3.220.0050.02011.93
5.3.210.0050.02111.93
5.3.200.0060.02211.93
5.3.190.0060.02011.93
5.3.180.0070.02011.93
5.3.170.0030.02011.92
5.3.160.0060.02111.92
5.3.150.0040.02211.92
5.3.140.0060.01911.92
5.3.130.0040.02111.92
5.3.120.0060.02211.92
5.3.110.0050.02411.92
5.3.100.0050.02111.65
5.3.90.0040.02111.64
5.3.80.0040.02011.64
5.3.70.0050.02011.64
5.3.60.0050.02011.63
5.3.50.0050.02011.61
5.3.40.0020.02311.60
5.3.30.0060.01711.58
5.3.20.0060.02011.47
5.3.10.0050.01811.46
5.3.00.0040.02211.45
5.2.170.0050.02310.20
5.2.160.0080.01410.20
5.2.150.0050.01610.20
5.2.140.0020.02010.20
5.2.130.0040.02110.18
5.2.120.0080.01610.18
5.2.110.0030.01710.18
5.2.100.0020.01810.18
5.2.90.0020.01810.18
5.2.80.0060.01810.18
5.2.70.0020.02010.18
5.2.60.0070.01810.15
5.2.50.0040.01810.14
5.2.40.0030.01810.13
5.2.30.0060.01610.11
5.2.20.0020.01910.11
5.2.10.0050.01610.06
5.2.00.0040.0189.99
5.1.60.0060.0129.63
5.1.50.0060.0149.63
5.1.40.0020.0169.62
5.1.30.0020.0179.80
5.1.20.0020.0189.81
5.1.10.0060.0139.67
5.1.00.0040.0169.67
5.0.50.0040.0108.91
5.0.40.0030.0138.84
5.0.30.0040.0158.75
5.0.20.0020.0138.73
5.0.10.0040.0118.72
5.0.00.0040.0168.71
4.4.90.0050.0087.98
4.4.80.0010.0107.96
4.4.70.0030.0107.97
4.4.60.0040.0077.97
4.4.50.0010.0117.97
4.4.40.0060.0127.94
4.4.30.0020.0107.97
4.4.20.0040.0098.01
4.4.10.0030.0098.01
4.4.00.0010.0157.97
4.3.110.0020.0107.92
4.3.100.0010.0107.92
4.3.90.0030.0097.90
4.3.80.0020.0157.88
4.3.70.0010.0107.90
4.3.60.0040.0077.90
4.3.50.0020.0097.90
4.3.40.0020.0147.86
4.3.30.0010.0107.24
4.3.20.0040.0077.23
4.3.10.0010.0107.21
4.3.00.0040.00814.05

preferences:
37.68 ms | 401 KiB | 5 Q