3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { } } function gimme_a_callable(callable $callable) { } error_reporting(-1); var_dump(is_callable([Foo::class, 'bar'])); gimme_a_callable([Foo::class, 'bar']);

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.0060.01317.95
8.4.10.0060.01317.91
8.3.150.0150.00416.64
8.3.140.0150.00318.77
8.3.130.0050.00318.65
8.3.120.0040.00418.91
8.3.110.0150.00020.94
8.3.100.0090.00018.46
8.3.90.0040.00426.77
8.3.80.0000.00918.68
8.3.70.0090.00616.50
8.3.60.0110.00718.23
8.3.50.0130.00722.12
8.3.40.0040.01118.82
8.3.30.0210.00018.62
8.3.20.0040.00420.29
8.3.10.0080.00020.66
8.3.00.0080.00020.53
8.2.260.0090.00916.88
8.2.250.0000.00816.70
8.2.240.0000.01217.24
8.2.230.0050.00322.58
8.2.220.0080.00037.54
8.2.210.0030.00626.77
8.2.200.0090.00018.41
8.2.190.0090.01218.54
8.2.180.0110.00718.29
8.2.170.0110.00422.96
8.2.160.0100.00720.41
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00519.36
8.2.120.0050.00326.35
8.2.110.0030.01320.51
8.2.100.0080.00417.78
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0040.00417.25
8.2.60.0040.00417.68
8.2.50.0000.00818.09
8.2.40.0030.00520.47
8.2.30.0040.00419.43
8.2.20.0000.00817.63
8.2.10.0030.00517.91
8.2.00.0000.00717.99
8.1.310.0060.00316.52
8.1.300.0030.00616.63
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0090.00023.99
8.1.260.0050.00328.09
8.1.250.0050.00328.09
8.1.240.0100.00722.00
8.1.230.0090.00322.59
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.00
8.1.190.0060.00317.00
8.1.180.0060.00318.10
8.1.170.0080.00018.42
8.1.160.0070.00022.65
8.1.150.0000.00718.64
8.1.140.0080.00019.46
8.1.130.0040.00417.47
8.1.120.0050.00217.35
8.1.110.0000.00717.30
8.1.100.0000.00817.25
8.1.90.0050.00317.23
8.1.80.0070.00017.39
8.1.70.0030.00317.23
8.1.60.0070.00017.54
8.1.50.0080.00017.48
8.1.40.0060.00317.45
8.1.30.0000.00817.55
8.1.20.0000.00717.56
8.1.10.0040.00417.47
8.1.00.0000.00717.42
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0000.00718.38
8.0.270.0030.00317.06
8.0.260.0030.00317.21
8.0.250.0030.00316.93
8.0.240.0040.00416.95
8.0.230.0040.00416.94
8.0.220.0030.00316.79
8.0.210.0070.00016.79
8.0.200.0000.00616.96
8.0.190.0000.00916.96
8.0.180.0070.00016.80
8.0.170.0040.00416.89
8.0.160.0000.00716.79
8.0.150.0070.00016.87
8.0.140.0040.00416.86
8.0.130.0070.00013.36
8.0.120.0000.00816.92
8.0.110.0050.00216.86
8.0.100.0030.00616.73
8.0.90.0070.00016.76
8.0.80.0100.00716.84
8.0.70.0000.00716.84
8.0.60.0040.00416.75
8.0.50.0070.00016.87
8.0.30.0110.00816.97
8.0.20.0110.00917.40
8.0.10.0040.00316.88
8.0.00.0090.00916.74
7.4.330.0030.00315.08
7.4.320.0000.00616.38
7.4.300.0030.00316.44
7.4.290.0000.00816.53
7.4.280.0030.00516.37
7.4.270.0070.00016.50
7.4.260.0070.00016.43
7.4.250.0000.00716.39
7.4.240.0030.00316.43
7.4.230.0050.00316.63
7.4.220.0160.01016.46
7.4.210.0090.00616.50
7.4.200.0030.00316.41
7.4.160.0030.01316.33
7.4.150.0120.00617.40
7.4.140.0110.01217.86
7.4.130.0070.01116.38
7.4.120.0080.00816.41
7.4.110.0070.01016.45
7.4.100.0130.01016.30
7.4.90.0060.01116.44
7.4.80.0100.00719.39
7.4.70.0070.01016.24
7.4.60.0070.01016.60
7.4.50.0060.00916.36
7.4.40.0130.00616.59
7.4.30.0060.00916.49
7.4.10.0090.00915.09
7.4.00.0050.01215.01
7.3.330.0050.00213.15
7.3.320.0030.00313.17
7.3.310.0030.00316.12
7.3.300.0000.00716.18
7.3.290.0080.00816.31
7.3.280.0060.01116.29
7.3.270.0160.00317.40
7.3.260.0040.01516.56
7.3.250.0110.00716.31
7.3.240.0080.00916.27
7.3.230.0060.01016.47
7.3.210.0040.01416.43
7.3.200.0130.00316.41
7.3.190.0060.01416.36
7.3.180.0160.00016.47
7.3.170.0060.01216.29
7.3.160.0060.01116.30
7.3.130.0090.00914.53
7.3.120.0090.00914.46
7.3.110.0040.00714.65
7.3.100.0110.00314.73
7.3.90.0090.00614.66
7.3.80.0070.00314.77
7.3.70.0120.00014.53
7.3.60.0000.01314.74
7.3.50.0030.00614.71
7.3.40.0000.00814.79
7.3.30.0070.01014.83
7.3.20.0060.01016.59
7.3.10.0070.00716.57
7.3.00.0090.00416.53
7.2.330.0070.01116.44
7.2.320.0080.01516.61
7.2.310.0160.00316.61
7.2.300.0120.00616.45
7.2.290.0110.00516.44
7.2.260.0070.01014.57
7.2.250.0040.01414.80
7.2.240.0070.00714.52
7.2.230.0090.00914.82
7.2.220.0120.00314.74
7.2.210.0030.01014.87
7.2.200.0030.00614.86
7.2.190.0080.00614.92
7.2.180.0030.01314.75
7.2.170.0080.00814.96
7.2.160.0070.01014.54
7.2.150.0070.00316.86
7.2.140.0030.01016.65
7.2.130.0030.00816.71
7.2.120.0050.00816.73
7.2.110.0030.00816.81
7.2.100.0060.00816.74
7.2.90.0080.00616.67
7.2.80.0050.00816.70
7.2.70.0120.00516.58
7.2.60.0080.00716.84
7.2.50.0030.01316.65
7.2.40.0070.00916.53
7.2.30.0020.01216.78
7.2.20.0050.00716.71
7.2.10.0100.00316.58
7.2.00.0060.00617.41
7.1.330.0000.01415.52
7.1.320.0060.00915.82
7.1.310.0030.00915.70
7.1.300.0030.00515.54
7.1.290.0030.00615.48
7.1.280.0040.00815.58
7.1.270.0000.01315.48
7.1.260.0070.00315.75
7.1.250.0060.00415.79
7.1.240.0080.00415.59
7.1.230.0040.00715.80
7.1.220.0040.00415.79
7.1.210.0060.00315.70
7.1.200.0030.00915.63
7.1.190.0030.01415.40
7.1.180.0070.00715.55
7.1.170.0070.01115.57
7.1.160.0040.00815.38
7.1.150.0000.01415.74
7.1.140.0030.01315.55
7.1.130.0040.00415.61
7.1.120.0030.00915.64
7.1.110.0060.00615.47
7.1.100.0310.00816.88
7.1.90.0030.01215.68
7.1.80.0030.00715.65
7.1.70.0000.01016.38
7.1.60.0090.01117.43
7.1.50.0100.00516.27
7.1.40.0060.00315.73
7.1.30.0100.00315.71
7.1.20.0070.00415.56
7.1.10.0040.01015.73
7.1.00.0050.04019.10
7.0.330.0030.01015.07
7.0.320.0090.00015.34
7.0.310.0070.00315.23
7.0.300.0060.00615.50
7.0.290.0080.00815.20
7.0.280.0000.01315.36
7.0.270.0040.01115.42
7.0.260.0000.00815.33
7.0.250.0000.01115.37
7.0.240.0060.00615.25
7.0.230.0030.00515.27
7.0.220.0000.00915.11
7.0.210.0000.01015.30
7.0.200.0020.00915.81
7.0.190.0100.00715.32
7.0.180.0000.01315.38
7.0.170.0000.01615.51
7.0.160.0060.00615.45
7.0.150.0000.01415.19
7.0.140.0030.01315.45
7.0.130.0100.00315.27
7.0.120.0000.00815.13
7.0.110.0030.00715.38
7.0.100.0070.00715.32
7.0.90.0040.01115.37
7.0.80.0110.00015.31
7.0.70.0040.01115.50
7.0.60.0100.04218.53
7.0.50.0020.02616.62
7.0.40.0060.02716.85
7.0.30.0130.04116.71
7.0.20.0130.03016.62
7.0.10.0110.04416.77
7.0.00.0100.04116.74
5.6.400.0000.01513.92
5.6.390.0060.00314.21
5.6.380.0000.01014.21
5.6.370.0070.00314.01
5.6.360.0030.00714.51
5.6.350.0060.01214.11
5.6.340.0070.00714.29
5.6.330.0060.00614.48
5.6.320.0050.00514.17
5.6.310.0090.00314.16
5.6.300.0040.01114.14
5.6.290.0130.00314.30
5.6.280.0050.04017.55
5.6.270.0090.00314.11
5.6.260.0040.00813.84
5.6.250.0070.00713.95
5.6.240.0030.00714.20
5.6.230.0070.00614.16
5.6.220.0040.00814.40
5.6.210.0110.04017.24
5.6.200.0100.03616.08
5.6.190.0050.02317.23
5.6.180.0150.04417.48
5.6.170.0160.04317.39
5.6.160.0070.04717.38
5.6.150.0150.03816.15
5.6.140.0100.03216.24
5.6.130.0020.03216.13
5.6.120.0020.02717.59
5.6.110.0150.04017.43
5.6.100.0070.04517.49
5.6.90.0050.04517.62
5.6.80.0110.03017.08
5.6.70.0030.00914.04
5.6.60.0070.00713.96
5.6.50.0110.00414.07
5.6.40.0070.00714.18
5.6.30.0090.00614.37
5.6.20.0070.00313.84
5.6.10.0000.01014.02
5.6.00.0030.01213.82
5.5.380.0000.00814.07
5.5.370.0110.00314.03
5.5.360.0030.01013.94
5.5.350.0120.03817.16
5.5.340.0060.04415.88
5.5.330.0100.04117.13
5.5.320.0340.03617.18
5.5.310.0180.04317.13
5.5.300.0050.02516.04
5.5.290.0070.03415.92
5.5.280.0030.04017.43
5.5.270.0020.02717.39
5.5.260.0030.04517.19
5.5.250.0140.04117.20
5.5.240.0090.01717.14
5.5.230.0110.00313.89
5.5.220.0080.00313.98
5.5.210.0040.00814.23
5.5.200.0090.00613.95
5.5.190.0060.00614.04
5.5.180.0000.00814.04
5.5.170.0030.01014.11
5.5.160.0070.00714.05
5.5.150.0080.00414.05
5.5.140.0080.00414.06
5.5.130.0040.00414.03
5.5.120.0040.00814.17
5.5.110.0000.01413.73
5.5.100.0090.00614.16
5.5.90.0090.00614.04
5.5.80.0080.00414.20
5.5.70.0030.01014.19
5.5.60.0030.01013.91
5.5.50.0070.00713.79
5.5.40.0050.00514.17
5.5.30.0000.00813.78
5.5.20.0060.00614.16
5.5.10.0090.00313.77
5.5.00.0040.00413.69

preferences:
34.66 ms | 403 KiB | 5 Q