3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Stuff { function __invoke() { return 'I am ' . get_class($this) . '.'; } } class Thing { function __invoke() { return 'I am Thing.'; } } class Thang { use Stuff; } $things[] = function () { return 'I am Thong.'; }; $things[] = new Thing; $things[] = new Thang; $things[] = 'strlen'; $things[] = [$things[0], '__invoke']; $things[] = [$things[1], '__invoke']; var_dump(array_map('is_callable'), $things);

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.0140.00718.68
8.3.50.0140.00721.21
8.3.40.0070.00718.84
8.3.30.0040.01120.34
8.3.20.0040.00418.95
8.3.10.0070.00021.22
8.3.00.0040.00419.79
8.2.180.0120.00916.88
8.2.170.0000.01522.96
8.2.160.0030.01020.52
8.2.150.0070.00724.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0050.00221.00
8.2.110.0060.00322.26
8.2.100.0070.00418.03
8.2.90.0000.00819.17
8.2.80.0030.00619.32
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0050.00320.07
8.2.30.0020.00519.45
8.2.20.0000.00817.79
8.2.10.0000.00717.67
8.2.00.0070.00017.69
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.45
8.1.230.0070.00320.97
8.1.220.0100.00018.77
8.1.210.0040.00418.84
8.1.200.0000.00917.35
8.1.190.0000.00717.52
8.1.180.0030.00518.10
8.1.170.0030.00618.66
8.1.160.0000.00818.84
8.1.150.0040.00418.70
8.1.140.0040.00417.54
8.1.130.0030.00317.87
8.1.120.0040.00417.52
8.1.110.0000.00717.36
8.1.100.0030.00317.48
8.1.90.0030.00517.35
8.1.80.0050.00317.41
8.1.70.0030.00317.42
8.1.60.0060.00317.62
8.1.50.0040.00417.34
8.1.40.0050.00317.52
8.1.30.0040.00417.63
8.1.20.0040.00417.57
8.1.10.0050.00217.54
8.1.00.0070.00417.52
8.0.300.0110.00419.91
8.0.290.0050.00217.05
8.0.280.0000.00718.49
8.0.270.0000.00717.17
8.0.260.0070.00016.92
8.0.250.0040.00416.92
8.0.240.0030.00516.91
8.0.230.0030.00316.99
8.0.220.0000.00716.98
8.0.210.0050.00316.98
8.0.200.0000.00617.00
8.0.190.0030.00316.88
8.0.180.0060.00316.93
8.0.170.0000.00816.94
8.0.160.0040.00417.04
8.0.150.0000.00716.90
8.0.140.0000.00716.97
8.0.130.0030.00313.34
8.0.120.0040.00416.81
8.0.110.0070.00016.94
8.0.100.0070.00016.93
8.0.90.0000.00717.07
8.0.80.0000.01716.92
8.0.70.0070.00016.97
8.0.60.0000.00716.83
8.0.50.0050.00316.91
8.0.30.0160.00317.01
8.0.20.0080.01017.40
8.0.10.0070.00016.96
8.0.00.0100.00816.74
7.4.330.0050.00016.67
7.4.320.0030.00316.45
7.4.300.0030.00316.53
7.4.290.0070.00016.54
7.4.280.0000.00716.38
7.4.270.0070.00016.55
7.4.260.0060.00013.25
7.4.250.0090.00016.39
7.4.240.0070.00016.43
7.4.230.0070.00016.52
7.4.220.0080.01716.31
7.4.210.0070.00716.46
7.4.200.0000.00716.55
7.4.190.0030.00316.68
7.4.160.0070.01116.41
7.4.150.0140.00517.40
7.4.140.0100.00817.86
7.4.130.0100.00816.47
7.4.120.0130.00416.54
7.4.110.0070.01116.42
7.4.100.0130.00416.52
7.4.90.0090.01316.50
7.4.80.0120.01219.39
7.4.70.0050.01216.35
7.4.60.0090.01216.41
7.4.50.0060.00316.55
7.4.40.0090.00922.77
7.4.30.0080.01316.63
7.4.00.0030.01314.63
7.3.330.0000.00613.30
7.3.320.0000.00713.18
7.3.310.0000.00716.26
7.3.300.0030.00316.19
7.3.290.0070.00616.30
7.3.280.0100.00616.33
7.3.270.0070.01117.40
7.3.260.0110.00818.24
7.3.250.0140.00816.46
7.3.240.0100.00716.38
7.3.230.0070.01416.54
7.3.210.0100.00716.35
7.3.200.0080.00819.39
7.3.190.0080.00816.50
7.3.180.0150.00316.51
7.3.170.0060.01016.45
7.3.160.0090.00616.60
7.3.120.0090.00614.98
7.2.330.0150.00616.36
7.2.320.0120.00616.70
7.2.310.0130.01016.44
7.2.300.0090.00616.36
7.2.290.0100.00716.65
7.2.00.0000.01319.37
7.1.100.0080.00318.04
7.1.70.0030.00616.94
7.1.60.0070.01719.24
7.1.50.0120.00916.89
7.1.00.0000.03722.33
7.0.200.0030.00716.68
7.0.140.0000.07722.18
7.0.60.0030.09019.86
7.0.50.0070.06317.97
7.0.40.0030.05320.26
7.0.30.0170.04720.08
7.0.20.0200.07720.07
7.0.10.0030.09020.09
7.0.00.0100.07320.22
5.6.280.0000.07720.82
5.6.210.0030.08720.57
5.6.200.0100.08018.24
5.6.190.0030.08720.48
5.6.180.0430.04720.63
5.6.170.0300.07320.45
5.6.160.0030.07320.51
5.6.150.0030.05018.21
5.6.140.0100.04018.16
5.6.130.0000.08718.16
5.6.120.0030.05021.03
5.6.110.0070.07721.12
5.6.100.0070.08720.99
5.6.90.0100.08021.13
5.6.80.0070.08320.40
5.5.350.0330.06020.45
5.5.340.0070.07017.95
5.5.330.0030.08720.36
5.5.320.0170.05720.32
5.5.310.0130.05320.38
5.5.300.0130.07317.98
5.5.290.0170.07718.03
5.5.280.0270.06020.80
5.5.270.0170.05720.74
5.5.260.0100.03720.77
5.5.250.0170.07320.56
5.5.240.0370.06020.23
5.4.450.0270.08019.52
5.4.440.0370.05319.31
5.4.430.0330.08019.64
5.4.420.0200.04019.54
5.4.410.0370.06719.28
5.4.400.0330.04018.88
5.4.390.0170.04719.19
5.4.380.0330.05718.85
5.4.370.0370.07018.95
5.4.360.0270.06318.99
5.4.350.0300.03319.08
5.4.340.0400.06019.23
5.4.320.0370.04019.22
5.4.310.0330.07018.98
5.4.300.0330.06319.08
5.4.290.0230.04018.87
5.4.280.0330.07019.14
5.4.270.0270.06318.87
5.4.260.0230.08019.22
5.4.250.0270.05719.21
5.4.240.0430.03719.21
5.4.230.0370.07319.21
5.4.220.0230.05019.05
5.4.210.0300.06718.94
5.4.200.0330.04018.98
5.4.190.0370.06719.18
5.4.180.0400.06719.24
5.4.170.0400.06718.84
5.4.160.0530.04019.17
5.4.150.0270.04319.21
5.4.140.0300.04316.40
5.4.130.0330.06316.40
5.4.120.0300.03316.72
5.4.110.0330.06016.50
5.4.100.0370.06016.32
5.4.90.0300.06716.41
5.4.80.0330.06016.57
5.4.70.0370.05316.57
5.4.60.0300.04716.17
5.4.50.0230.07316.42
5.4.40.0330.06316.53
5.4.30.0230.04716.54
5.4.20.0300.07016.48
5.4.10.0230.03716.24
5.4.00.0300.04016.11
5.3.290.0370.03314.50
5.3.280.0400.06014.62
5.3.270.0330.07014.55
5.3.260.0370.06714.51
5.3.250.0270.07014.47
5.3.240.0270.05014.46
5.3.230.0370.06314.53
5.3.220.0270.03714.53
5.3.210.0270.08014.55
5.3.200.0230.04714.41
5.3.190.0300.05014.52
5.3.180.0400.05714.50
5.3.170.0370.06314.51
5.3.160.0330.06714.61
5.3.150.0270.04714.44
5.3.140.0330.06314.41
5.3.130.0300.06314.50
5.3.120.0300.07014.38
5.3.110.0270.06014.39
5.3.100.0370.06014.02
5.3.90.0370.05713.90
5.3.80.0330.06713.84
5.3.70.0300.05013.79
5.3.60.0270.03713.98
5.3.50.0230.04713.99
5.3.40.0270.05713.77
5.3.30.0370.06313.89
5.3.20.0370.04713.59
5.3.10.0200.04013.60
5.3.00.0300.07313.56
5.2.170.0230.03011.30
5.2.160.0200.02711.00
5.2.150.0200.06011.16
5.2.140.0330.05011.23
5.2.130.0230.04710.92
5.2.120.0370.05011.01
5.2.110.0200.03010.97
5.2.100.0230.04011.12
5.2.90.0230.05010.93
5.2.80.0200.03011.11
5.2.70.0230.05011.14
5.2.60.0200.04310.93
5.2.50.0200.02710.87
5.2.40.0130.03010.85
5.2.30.0170.03010.90
5.2.20.0170.03710.89
5.2.10.0170.04710.72
5.2.00.0170.02710.64
5.1.60.0130.0279.96
5.1.50.0130.0279.96
5.1.40.0170.0309.95
5.1.30.0170.05310.38
5.1.20.0230.05010.25
5.1.10.0230.02010.00
5.1.00.0270.0179.95
5.0.50.0130.0409.59
5.0.40.0100.0479.59
5.0.30.0100.0639.59
5.0.20.0130.0309.59
5.0.10.0130.0409.59
5.0.00.0130.0609.59
4.4.90.0070.0279.59
4.4.80.0100.0179.59
4.4.70.0100.0239.59
4.4.60.0130.0179.59
4.4.50.0130.0209.59
4.4.40.0070.0239.59
4.4.30.0100.0179.59
4.4.20.0100.0179.59
4.4.10.0130.0339.59
4.4.00.0130.0279.59
4.3.110.0100.0209.59
4.3.100.0100.0309.59
4.3.90.0070.0209.59
4.3.80.0100.0539.59
4.3.70.0030.0409.59
4.3.60.0100.0309.59
4.3.50.0100.0339.59
4.3.40.0070.0539.59
4.3.30.0030.0309.59
4.3.20.0130.0239.59
4.3.10.0070.0379.59
4.3.00.0030.0279.59

preferences:
58.75 ms | 400 KiB | 5 Q