3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CallBySelf { public static function foo() { echo 'Foo', PHP_EOL; } public static function testCall() { $method = [self::class, 'foo']; var_dump(is_callable($method)); echo 'Call via call_user_func: '; call_user_func($method); echo 'Direct call: '; $method(); } } CallBySelf::testCall();

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.60.0120.00318.43
8.3.50.0110.01118.00
8.3.40.0030.01018.79
8.3.30.0100.00718.66
8.3.20.0070.00021.67
8.3.10.0030.00523.65
8.3.00.0040.00419.68
8.2.180.0090.00618.41
8.2.170.0100.00722.96
8.2.160.0030.01022.26
8.2.150.0030.00625.66
8.2.140.0050.00324.66
8.2.130.0040.00421.08
8.2.120.0070.00026.35
8.2.110.0100.00022.30
8.2.100.0040.00817.72
8.2.90.0040.00420.59
8.2.80.0080.00017.97
8.2.70.0120.00018.04
8.2.60.0040.00418.22
8.2.50.0000.00718.10
8.2.40.0060.00322.14
8.2.30.0110.00019.21
8.2.20.0040.00418.00
8.2.10.0000.00717.91
8.2.00.0000.00819.65
8.1.280.0110.00425.92
8.1.270.0040.00422.05
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.19
8.1.230.0060.00618.85
8.1.220.0030.00617.78
8.1.210.0050.00318.77
8.1.200.0040.00817.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.52
8.1.160.0070.00018.82
8.1.150.0040.00420.22
8.1.140.0080.00017.57
8.1.130.0030.00318.92
8.1.120.0030.00317.39
8.1.110.0000.00717.20
8.1.100.0000.00717.32
8.1.90.0040.00417.38
8.1.80.0070.00017.38
8.1.70.0030.00317.39
8.1.60.0040.00417.46
8.1.50.0030.00617.51
8.1.40.0040.00417.42
8.1.30.0030.00517.71
8.1.20.0040.00417.70
8.1.10.0040.00417.55
8.1.00.0080.00017.57
8.0.300.0070.00019.68
8.0.290.0050.00216.75
8.0.280.0000.00718.44
8.0.270.0070.00017.29
8.0.260.0030.00316.82
8.0.250.0000.00616.77
8.0.240.0030.00316.91
8.0.230.0000.00816.87
8.0.220.0030.00316.70
8.0.210.0030.00416.83
8.0.200.0000.00716.88
8.0.190.0050.00316.80
8.0.180.0050.00216.82
8.0.170.0000.00816.80
8.0.160.0040.00416.86
8.0.150.0030.00316.72
8.0.140.0000.00716.75
8.0.130.0000.00513.27
8.0.120.0000.00716.74
8.0.110.0060.00316.78
8.0.100.0050.00316.82
8.0.90.0040.00416.80
8.0.80.0090.00716.75
8.0.70.0040.00416.69
8.0.60.0040.00416.87
8.0.50.0080.00016.72
8.0.30.0110.00817.25
8.0.20.0150.00517.40
8.0.10.0050.00316.72
8.0.00.0130.00416.79
7.4.330.0030.00315.55
7.4.320.0000.00716.43
7.4.300.0000.00716.41
7.4.290.0000.00716.57
7.4.280.0030.00616.51
7.4.270.0000.00816.56
7.4.260.0070.00016.59
7.4.250.0000.00816.57
7.4.240.0070.00016.54
7.4.230.0000.00716.60
7.4.220.0080.00016.70
7.4.210.0050.00916.62
7.4.200.0000.00816.62
7.4.160.0090.00716.49
7.4.140.0130.00817.86
7.4.130.0130.01316.58
7.4.120.0140.00516.43
7.4.110.0120.00416.70
7.4.100.0070.01016.52
7.4.90.0030.01716.54
7.4.80.0120.00619.39
7.4.70.0100.00716.42
7.4.60.0040.01116.25
7.4.50.0000.01516.39
7.4.40.0090.00616.55
7.4.10.0100.01014.82
7.4.00.0100.00714.88
7.3.330.0070.00013.01
7.3.320.0000.00613.18
7.3.310.0000.00716.32
7.3.300.0030.00516.07
7.3.290.0030.00316.14
7.3.280.0080.00716.23
7.3.260.0070.01016.33
7.3.240.0070.01216.46
7.3.230.0130.00316.24
7.3.210.0100.00716.22
7.3.200.0110.00616.53
7.3.190.0070.01016.37
7.3.180.0080.00816.57
7.3.170.0150.00316.48
7.3.160.0060.01516.44
7.3.130.0000.01714.78
7.3.120.0110.00714.79
7.3.110.0120.00614.91
7.3.100.0090.00015.04
7.3.90.0100.00614.88
7.3.80.0150.00014.67
7.3.70.0030.01014.62
7.3.60.0110.00714.85
7.3.50.0060.00914.82
7.3.40.0000.01014.66
7.3.30.0090.00614.64
7.3.20.0060.01016.64
7.3.10.0060.00816.65
7.3.00.0030.01216.57
7.2.330.0140.00416.59
7.2.320.0030.01416.52
7.2.310.0060.01116.47
7.2.300.0130.00316.56
7.2.290.0090.00616.48
7.2.260.0070.01114.99
7.2.250.0060.01114.67
7.2.240.0140.00014.54
7.2.230.0060.00914.80
7.2.220.0070.00315.11
7.2.210.0070.00714.88
7.2.200.0100.00714.95
7.2.190.0070.01014.96
7.2.180.0040.01114.68
7.2.170.0030.00915.06
7.2.160.0000.01514.73
7.2.150.0090.00616.91
7.2.140.0000.01616.82
7.2.130.0080.00516.71
7.2.120.0050.00916.79
7.2.110.0090.00516.70
7.2.100.0080.00716.79
7.2.90.0080.00616.71
7.2.80.0050.01016.76
7.2.70.0080.00916.70
7.2.60.0090.00716.84
7.2.50.0030.01316.90
7.2.40.0040.00916.77
7.2.30.0090.00716.80
7.2.20.0100.00917.70
7.2.10.0080.00817.84
7.2.00.0070.00917.69
7.1.330.0060.00915.68
7.1.320.0120.00415.68
7.1.310.0000.01115.47
7.1.300.0100.00315.83
7.1.290.0000.01015.76
7.1.280.0030.00715.74
7.1.270.0030.01315.89
7.1.260.0030.00615.56
7.1.250.0060.00615.71
7.1.240.0030.01315.77
7.1.230.0080.00815.52
7.1.220.0030.00915.63
7.1.210.0070.00415.67
7.1.200.0080.00315.67
7.1.190.0040.01515.54
7.1.180.0000.01815.84
7.1.170.0040.01115.81
7.1.160.0030.01015.64
7.1.150.0030.01015.50
7.1.140.0060.01417.00
7.1.130.0100.00617.01
7.1.120.0110.00617.06
7.1.110.0090.00716.87
7.1.100.0070.00816.99
7.1.90.0060.01116.70
7.1.80.0090.01216.89
7.1.70.0090.00816.38
7.1.60.0190.01125.37
7.1.50.0170.00825.23
7.1.40.0190.00824.96
7.1.30.0130.01325.10
7.1.20.0180.01125.05
7.1.10.0050.01216.04
7.1.00.0030.01216.11
7.0.330.0080.00415.30
7.0.320.0000.01515.26
7.0.310.0110.00415.36
7.0.300.0070.00715.30
7.0.290.0060.00615.29
7.0.280.0060.00615.32
7.0.270.0060.00615.48
7.0.260.0090.00315.42
7.0.250.0070.00715.41
7.0.240.0080.00815.57
7.0.230.0000.01115.29
7.0.220.0030.01315.36
7.0.210.0080.00615.17
7.0.200.0060.00615.32
7.0.190.0030.00615.55
7.0.180.0030.01315.43
7.0.170.0120.00415.27
7.0.160.0070.00715.34
7.0.150.0110.00415.48
7.0.140.0060.00615.45
7.0.130.0160.00015.43
7.0.120.0030.00915.36
7.0.110.0030.01015.42
7.0.100.0100.00315.46
7.0.90.0120.00315.27
7.0.80.0000.01315.36
7.0.70.0070.00415.32
7.0.60.0060.00615.50
7.0.50.0070.00715.30
7.0.40.0130.00013.55
7.0.30.0060.00613.60
7.0.20.0060.00913.52
7.0.10.0000.01313.36
7.0.00.0040.00813.43
5.6.400.0120.00414.29
5.6.390.0040.01514.48
5.6.380.0040.01214.22
5.6.370.0040.01114.30
5.6.360.0040.00714.40
5.6.350.0030.01014.28
5.6.340.0030.01214.60
5.6.330.0100.00314.56
5.6.320.0030.00714.09
5.6.310.0060.00914.48
5.6.300.0060.01014.66
5.6.290.0060.00614.14
5.6.280.0070.00714.60
5.6.270.0030.00914.27
5.6.260.0060.00314.34
5.6.250.0070.00714.35
5.6.240.0040.00414.48
5.6.230.0060.00914.22
5.6.220.0000.01314.25
5.6.210.0090.00314.36
5.6.200.0060.00614.21
5.6.190.0060.00914.45
5.6.180.0100.00314.29
5.6.170.0100.00714.27
5.6.160.0070.00714.18
5.6.150.0070.01014.00
5.6.140.0030.01014.38
5.6.130.0040.01114.26
5.6.120.0060.00914.30
5.6.110.0040.01214.41
5.6.100.0060.01014.27
5.6.90.0030.01014.00
5.6.80.0030.00614.21
5.6.70.0090.00314.31
5.6.60.0120.00314.22
5.6.50.0040.01114.11
5.6.40.0060.00714.06
5.6.30.0040.00714.30
5.6.20.0030.00714.01
5.6.10.0070.00714.14
5.6.00.0070.00714.13

preferences:
65 ms | 400 KiB | 5 Q