3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function callback() {} public function set(callable $callback) {} } $callback = ['Test', 'callback']; var_dump(is_callable($callback)); (new Test())->set($callback);

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.1.110.0030.00517.28
8.1.100.0070.00017.39
8.1.90.0000.00817.34
8.1.80.0030.00617.38
8.1.70.0070.00017.39
8.1.60.0040.00417.52
8.1.50.0070.00017.50
8.1.40.0080.00017.43
8.1.30.0040.00417.61
8.1.20.0040.00417.65
8.1.10.0000.00817.40
8.1.00.0030.00617.43
8.0.240.0030.00316.98
8.0.230.0040.00416.82
8.0.220.0070.00316.90
8.0.210.0030.00316.88
8.0.200.0000.00616.82
8.0.190.0030.00316.93
8.0.180.0040.00416.81
8.0.170.0060.00316.88
8.0.160.0040.00416.71
8.0.150.0040.00316.71
8.0.140.0000.00816.84
8.0.130.0050.00013.26
8.0.120.0060.00316.83
8.0.110.0070.00016.82
8.0.100.0070.00016.76
8.0.90.0040.00416.88
8.0.80.0030.01316.83
8.0.70.0000.00716.75
8.0.60.0040.00416.95
8.0.50.0000.00716.81
8.0.30.0090.00917.18
8.0.20.0160.02017.21
8.0.10.0050.00216.87
8.0.00.0090.00916.65
7.4.300.0030.00616.50
7.4.290.0000.00716.49
7.4.280.0000.00916.63
7.4.270.0000.00716.64
7.4.260.0050.00013.32
7.4.250.0000.00916.56
7.4.240.0000.00716.51
7.4.230.0000.00716.46
7.4.220.0060.00116.59
7.4.210.0050.01216.63
7.4.200.0000.00716.39
7.4.130.0150.00616.48
7.4.120.0190.00816.30
7.4.110.0130.01516.33
7.4.100.0190.00816.28
7.4.90.0090.01316.39
7.4.80.0110.01116.31
7.4.70.0100.01016.44
7.4.60.0110.01016.40
7.4.50.0100.01016.48
7.4.40.0150.00716.07
7.4.30.0100.00816.30
7.4.20.0170.00816.41
7.4.10.0200.00816.25
7.4.00.0150.00916.42
7.3.330.0030.00316.23
7.3.320.0030.00313.09
7.3.310.0030.00316.26
7.3.300.0030.00316.23
7.3.290.0070.01116.22
7.3.260.0060.01216.44
7.3.240.0140.01116.27
7.3.230.0120.01815.95
7.3.220.0120.00916.13
7.3.210.0130.00916.16
7.3.200.0130.00616.22
7.3.190.0090.01016.13
7.3.180.0120.00916.21
7.3.170.0110.00916.15
7.3.160.0080.01016.24
7.3.150.0070.01016.06
7.3.140.0180.01116.17
7.3.130.0170.00916.39
7.3.120.0210.00716.29
7.3.110.0180.01216.26
7.3.100.0190.00616.43
7.3.90.0180.00716.19
7.3.80.0140.01316.38
7.3.70.0240.00316.27
7.3.60.0150.00516.17
7.3.50.0180.01116.20
7.3.40.0200.00716.37
7.3.30.0100.01516.23
7.3.20.0190.01116.38
7.3.10.0210.00916.33
7.3.00.0230.00616.30
7.2.340.0160.01416.40
7.2.330.0090.01116.44
7.2.320.0110.00716.31
7.2.310.0100.00716.40
7.2.300.0120.00916.46
7.2.290.0080.01216.24
7.2.280.0110.01016.36
7.2.270.0130.01416.40
7.2.260.0140.01016.39
7.2.250.0170.00816.24
7.2.240.0220.00916.20
7.2.230.0200.00816.60
7.2.220.0170.01016.41
7.2.210.0150.01116.47
7.2.200.0100.01016.40
7.2.190.0070.01316.45
7.2.180.0220.00516.39
7.2.170.0130.01316.43
7.2.160.0160.01016.37
7.2.150.0180.01116.50
7.2.140.0220.00616.40
7.2.130.0210.00616.41
7.2.120.0280.00516.47
7.2.110.0170.01416.37
7.2.100.0210.00716.46
7.2.90.0130.01316.49
7.2.80.0160.01116.52
7.2.70.0200.01116.53
7.2.60.0130.01416.45
7.2.50.0190.01016.59
7.2.40.0250.01116.58
7.2.30.0140.01216.63
7.2.20.0190.01016.44
7.2.10.0180.00716.42
7.2.00.0210.00416.36
7.1.330.0320.00715.48
7.1.320.0230.01515.71
7.1.310.0270.00415.52
7.1.300.0280.00715.44
7.1.290.0290.00815.52
7.1.280.0240.00815.58
7.1.270.0220.00915.61
7.1.260.0230.00515.46
7.1.250.0360.00615.46
7.1.240.0260.00715.41
7.1.230.0310.00715.71
7.1.220.0250.01715.47
7.1.210.0230.00515.57
7.1.200.0200.01215.52
7.1.190.0250.00715.49
7.1.180.0200.00815.64
7.1.170.0290.00615.46
7.1.160.0260.01315.48
7.1.150.0250.00715.42
7.1.140.0280.00315.53
7.1.130.0190.01115.43
7.1.120.0240.00515.41
7.1.110.0280.00715.59
7.1.100.0260.00715.59
7.1.90.0220.01515.46
7.1.80.0140.01815.48
7.1.70.0180.01215.49
7.1.60.0270.00715.51
7.1.50.0250.00315.45
7.1.40.0160.01615.53
7.1.30.0230.01215.36
7.1.20.0230.00615.60
7.1.10.0230.00615.57
7.1.00.0300.00015.39
7.0.330.0220.00915.07
7.0.320.0220.01515.35
7.0.310.0240.00915.18
7.0.300.0240.01115.16
7.0.290.0280.00515.13
7.0.280.0260.00515.07
7.0.270.0180.00915.04
7.0.260.0180.01515.13
7.0.250.0190.01015.13
7.0.240.0150.01415.29
7.0.230.0210.01415.17
7.0.220.0220.00715.27
7.0.210.0170.01215.30
7.0.200.0150.01115.11
7.0.190.0110.01915.20
7.0.180.0150.01215.20
7.0.170.0280.00015.22
7.0.160.0240.00315.15
7.0.150.0230.00915.28
7.0.140.0200.01215.15
7.0.130.0190.00815.14
7.0.120.0130.01915.43
7.0.110.0280.00715.19
7.0.100.0150.01515.32
7.0.90.0180.01215.13
7.0.80.0160.01315.26
7.0.70.0120.01615.11
7.0.60.0210.01215.39
7.0.50.0260.01215.32
7.0.40.0180.00915.22
7.0.30.0180.01115.02
7.0.20.0240.00315.10
7.0.10.0320.00015.20
7.0.00.0170.00915.19
5.6.400.0200.01216.10
5.6.390.0270.00316.25
5.6.380.0290.00516.07
5.6.370.0230.00815.88
5.6.360.0230.01115.98
5.6.350.0190.01916.23
5.6.340.0270.01016.02
5.6.330.0200.01716.03
5.6.320.0240.00715.77
5.6.310.0180.01816.07
5.6.300.0210.01215.95
5.6.290.0260.00415.70
5.6.280.0240.00815.73
5.6.270.0260.01015.86
5.6.260.0180.01416.03
5.6.250.0230.01115.97
5.6.240.0270.00315.99
5.6.230.0170.01316.00
5.6.220.0200.01115.97
5.6.210.0290.00715.64
5.6.200.0290.00816.10
5.6.190.0170.01416.04
5.6.180.0240.00315.87
5.6.170.0160.01316.23
5.6.160.0140.01415.80
5.6.150.0180.01116.02
5.6.140.0280.00315.88
5.6.130.0220.00715.93
5.6.120.0240.00815.86
5.6.110.0170.01316.00
5.6.100.0180.01015.99
5.6.90.0180.01315.68
5.6.80.0150.01215.75
5.6.70.0180.00915.62
5.6.60.0200.00815.85
5.6.50.0110.01715.89
5.6.40.0220.00615.89
5.6.30.0140.01415.82
5.6.20.0190.00815.84
5.6.10.0230.00815.84
5.6.00.0190.00915.89
5.5.380.0270.00915.98
5.5.370.0230.00916.02
5.5.360.0290.00415.90
5.5.350.0150.01915.66
5.5.340.0160.01315.81
5.5.330.0220.00815.77
5.5.320.0230.00915.71
5.5.310.0180.01115.82
5.5.300.0210.00815.62
5.5.290.0240.00615.95
5.5.280.0270.00815.71
5.5.270.0230.01215.94
5.5.260.0210.00815.91
5.5.250.0160.01315.93
5.5.240.0230.00415.81
5.5.230.0230.00715.84
5.5.220.0200.01015.64
5.5.210.0250.00515.82
5.5.200.0210.00915.64
5.5.190.0160.01315.60
5.5.180.0180.00915.49
5.5.170.0300.00415.75
5.5.160.0160.01316.02
5.5.150.0210.00715.84
5.5.140.0260.00315.98
5.5.130.0230.00715.89
5.5.120.0160.01215.63
5.5.110.0120.01515.51
5.5.100.0190.01315.52
5.5.90.0160.01315.84
5.5.80.0090.01815.73
5.5.70.0210.00815.89
5.5.60.0160.01615.59
5.5.50.0220.01015.71
5.5.40.0200.00815.63
5.5.30.0130.01315.66
5.5.20.0120.01615.49
5.5.10.0230.00915.89
5.5.00.0180.00915.69
5.4.450.0180.00713.03
5.4.440.0220.00013.03
5.4.430.0140.00713.03
5.4.420.0100.01713.03
5.4.410.0140.01213.03
5.4.400.0130.00713.03
5.4.390.0130.01013.03
5.4.380.0130.01613.03
5.4.370.0130.00913.03
5.4.360.0110.01113.03
5.4.350.0140.00813.03
5.4.340.0140.01013.03
5.4.330.0150.00613.03
5.4.320.0170.00713.03
5.4.310.0170.00613.03
5.4.300.0160.00513.03
5.4.290.0060.01613.03
5.4.280.0190.00313.03
5.4.270.0120.01213.03
5.4.260.0210.00313.03
5.4.250.0150.00613.03
5.4.240.0200.00713.03
5.4.230.0150.00613.03
5.4.220.0190.01113.03
5.4.210.0180.00413.03
5.4.200.0130.00813.03
5.4.190.0190.00413.03
5.4.180.0120.00913.03
5.4.170.0120.00913.03
5.4.160.0130.00713.03
5.4.150.0150.00613.03
5.4.140.0190.00613.03
5.4.130.0160.00513.03
5.4.120.0180.00313.03
5.4.110.0170.00413.03
5.4.100.0190.00813.03
5.4.90.0160.00713.03
5.4.80.0210.00013.03
5.4.70.0080.01213.03
5.4.60.0130.00713.03
5.4.50.0160.00613.03
5.4.40.0120.00813.03
5.4.30.0140.00713.03
5.4.20.0110.01113.03
5.4.10.0150.00613.03
5.4.00.0180.00313.03
5.3.290.0130.01013.03
5.3.280.0210.00413.03
5.3.270.0150.01013.03
5.3.260.0170.00413.03
5.3.250.0160.00913.03
5.3.240.0150.01013.03
5.3.230.0170.00513.03
5.3.220.0180.00913.03
5.3.210.0160.00813.03
5.3.200.0180.00413.03
5.3.190.0170.00713.03
5.3.180.0210.00313.03
5.3.170.0090.01213.03
5.3.160.0120.00913.03
5.3.150.0120.00913.03
5.3.140.0150.00813.03
5.3.130.0170.00413.03
5.3.120.0140.00813.03
5.3.110.0050.01813.07
5.3.100.0210.00713.03
5.3.90.0200.00313.03
5.3.80.0150.00813.03
5.3.70.0160.00513.03
5.3.60.0110.01113.03
5.3.50.0140.00713.03
5.3.40.0130.00813.03
5.3.30.0190.00513.03
5.3.20.0130.01013.03
5.3.10.0190.00913.03
5.3.00.0180.00313.03
5.2.170.0060.01713.03
5.2.160.0090.00913.03
5.2.150.0070.01113.03
5.2.140.0120.00913.03
5.2.130.0160.00513.03
5.2.120.0080.01113.03
5.2.110.0130.00713.03
5.2.100.0140.00513.03
5.2.90.0170.00413.03
5.2.80.0120.00913.03
5.2.70.0180.00013.03
5.2.60.0140.00513.03
5.2.50.0130.00713.03
5.2.40.0070.01713.03
5.2.30.0110.00813.03
5.2.20.0160.00313.03
5.2.10.0090.00913.03
5.2.00.0150.00713.03
5.1.60.0140.00313.03
5.1.50.0020.01513.03
5.1.40.0120.00313.03
5.1.30.0130.00313.03
5.1.20.0070.01013.03
5.1.10.0090.00913.03
5.1.00.0080.00913.03
5.0.50.0140.00313.03
5.0.40.0110.00713.03
5.0.30.0120.00413.03
5.0.20.0100.00413.03
5.0.10.0070.00713.03
5.0.00.0130.00013.03
4.4.90.0090.00013.03
4.4.80.0100.00013.03
4.4.70.0050.00513.03
4.4.60.0060.00313.03
4.4.50.0100.00013.03
4.4.40.0040.00413.03
4.4.30.0000.00913.03
4.4.20.0090.00013.03
4.4.10.0090.00013.03
4.4.00.0070.00213.03
4.3.110.0110.00013.03
4.3.100.0090.00013.03
4.3.90.0090.00013.03
4.3.80.0060.00713.03
4.3.70.0040.00413.03
4.3.60.0070.00213.03
4.3.50.0090.00013.03
4.3.40.0000.00913.03
4.3.30.0050.00213.03
4.3.20.0020.00513.03
4.3.10.0040.00413.03
4.3.00.0000.01013.03

preferences:
91.34 ms | 412 KiB | 13 Q