3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} function getfunc() { $b = function() { $a = function() { return 'apple'; }; echo $a(); }; return $b->bindTo(new A()); } call_user_func(getfunc());

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.0090.00916.63
8.3.50.0060.01321.93
8.3.40.0060.01218.71
8.3.30.0110.00318.59
8.3.20.0050.00320.07
8.3.10.0040.00423.27
8.3.00.0000.01017.50
8.2.180.0140.01018.41
8.2.170.0070.00722.96
8.2.160.0100.00320.57
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00017.50
8.2.110.0030.00722.24
8.2.100.0040.00717.93
8.2.90.0050.00219.23
8.2.80.0000.00917.97
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0050.00521.03
8.2.30.0040.00420.63
8.2.20.0030.00617.60
8.2.10.0070.00017.94
8.2.00.0040.00418.14
8.1.280.0000.01525.92
8.1.270.0000.00823.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.65
8.1.230.0060.00617.66
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00419.08
8.1.160.0040.00422.00
8.1.150.0000.00718.93
8.1.140.0040.00419.45
8.1.130.0040.00417.70
8.1.120.0050.00217.37
8.1.110.0070.00017.36
8.1.100.0030.00517.33
8.1.90.0040.00417.50
8.1.80.0070.00017.38
8.1.70.0080.00017.47
8.1.60.0040.00417.55
8.1.50.0040.00417.55
8.1.40.0030.00617.55
8.1.30.0000.00817.52
8.1.20.0030.00617.53
8.1.10.0050.00217.63
8.1.00.0000.00717.46
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0030.00318.35
8.0.270.0070.00017.22
8.0.260.0060.00017.27
8.0.250.0070.00016.82
8.0.240.0000.00716.96
8.0.230.0040.00416.80
8.0.220.0000.00716.88
8.0.210.0000.00716.80
8.0.200.0000.00616.93
8.0.190.0080.00016.93
8.0.180.0040.00416.97
8.0.170.0020.00516.84
8.0.160.0070.00016.88
8.0.150.0020.00516.79
8.0.140.0000.00716.76
8.0.130.0030.00313.36
8.0.120.0040.00416.91
8.0.110.0050.00316.88
8.0.100.0080.00016.89
8.0.90.0070.00016.94
8.0.80.0110.00416.94
8.0.70.0000.00716.80
8.0.60.0040.00416.91
8.0.50.0000.00816.78
8.0.30.0110.00617.15
8.0.20.0090.00817.40
8.0.10.0000.00816.91
8.0.00.0070.01116.60
7.4.330.0000.00515.08
7.4.320.0000.00616.47
7.4.300.0000.00616.52
7.4.290.0030.00316.55
7.4.280.0050.00416.56
7.4.270.0000.00716.63
7.4.260.0080.00016.60
7.4.250.0000.00816.50
7.4.240.0070.00016.56
7.4.230.0030.00316.68
7.4.220.0230.00416.63
7.4.210.0070.00716.55
7.4.200.0040.00416.31
7.4.160.0060.00916.48
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0100.00916.46
7.4.120.0150.00416.54
7.4.110.0100.00716.48
7.4.100.0060.01516.43
7.4.90.0070.01016.38
7.4.80.0150.00919.39
7.4.70.0100.00716.50
7.4.60.0030.01316.50
7.4.50.0000.00816.39
7.4.40.0100.00716.46
7.4.30.0070.01016.22
7.4.00.0050.01114.94
7.3.330.0000.00813.06
7.3.320.0000.00613.21
7.3.310.0040.00416.20
7.3.300.0000.00716.16
7.3.290.0090.00516.22
7.3.280.0130.00816.26
7.3.270.0090.00917.40
7.3.260.0030.01316.38
7.3.250.0100.00716.39
7.3.240.0100.00916.46
7.3.230.0130.00316.39
7.3.210.0070.01016.18
7.3.200.0070.01116.63
7.3.190.0140.00316.26
7.3.180.0120.00616.27
7.3.170.0060.01116.43
7.3.160.0000.02116.41
7.3.120.0060.01314.86
7.3.110.0100.00714.85
7.3.100.0100.00314.94
7.3.90.0000.01614.75
7.3.80.0110.00414.84
7.3.70.0070.00714.75
7.3.60.0060.00614.63
7.3.50.0060.01014.78
7.3.40.0090.00914.43
7.3.30.0070.00314.84
7.3.20.0030.01016.58
7.3.10.0040.00716.52
7.3.00.0120.00316.61
7.2.330.0100.00716.68
7.2.320.0070.01016.79
7.2.310.0090.01216.29
7.2.300.0180.00616.67
7.2.290.0180.00416.76
7.2.250.0030.01615.29
7.2.240.0040.01214.71
7.2.230.0110.00415.24
7.2.220.0110.00714.79
7.2.210.0080.00814.95
7.2.200.0080.01214.99
7.2.190.0030.01415.09
7.2.180.0060.01214.92
7.2.170.0090.00915.05
7.2.00.0040.01419.29
7.1.330.0060.00615.58
7.1.320.0060.01015.54
7.1.310.0000.01515.57
7.1.300.0080.00415.51
7.1.290.0040.01115.34
7.1.280.0030.01315.68
7.1.270.0040.00815.63
7.1.260.0050.00315.68
7.1.100.0180.00915.71
7.1.70.0000.00816.81
7.1.60.0070.00719.24
7.1.50.0040.01816.84
7.1.00.0030.07722.50
7.0.200.0000.00816.34
7.0.60.0070.08020.07
7.0.50.0030.07017.82
7.0.40.0030.05020.21
7.0.30.0330.04020.12
7.0.20.0100.05320.24
7.0.10.0300.05720.08
7.0.00.0070.08320.14
5.6.280.0000.03720.87
5.6.210.0030.08720.48
5.6.200.0070.03718.14
5.6.190.0000.04720.66
5.6.180.0100.08020.48
5.6.170.0270.07720.71
5.6.160.0070.09320.39
5.6.150.0070.08018.12
5.6.140.0070.07318.12
5.6.130.0030.08718.28
5.6.120.0030.09021.03
5.6.110.0170.04021.00
5.6.100.0200.07021.00
5.6.90.0070.04021.13
5.6.80.0130.07320.39
5.6.70.0170.04320.36
5.5.350.0000.08320.45
5.5.340.0070.08018.04
5.5.330.0100.04720.21
5.5.320.0000.09320.41
5.5.310.0330.07320.30
5.5.300.0070.08017.97
5.5.290.0070.03717.99
5.5.280.0100.08020.97
5.5.270.0030.04320.77
5.5.260.0000.05020.77
5.5.250.0130.07720.59
5.5.240.0030.05720.24
5.4.450.0770.07019.42
5.4.440.0700.05319.25
5.4.430.0830.06019.60
5.4.420.0630.06319.43
5.4.410.0730.05319.48
5.4.400.0670.06318.79
5.4.390.0600.06319.00
5.4.380.0730.06019.08
5.4.370.0770.05019.01
5.4.360.0500.06018.95
5.4.350.0570.05319.30
5.4.340.0630.06019.27
5.4.320.0770.07318.79
5.4.310.0800.06318.92
5.4.300.0600.06018.91
5.4.290.0630.05719.24
5.4.280.0730.06319.26
5.4.270.0700.06018.80
5.4.260.0730.05018.95
5.4.250.0700.05318.94
5.4.240.0670.05318.77
5.4.230.0800.04018.77
5.4.220.0730.05719.07
5.4.210.0730.05719.16
5.4.200.0700.05019.36
5.4.190.0670.06018.79
5.4.180.0600.05319.07
5.4.170.0530.05318.80
5.4.160.0670.04019.05
5.4.150.0470.06019.07
5.4.140.0630.04716.63
5.4.130.0570.05716.58
5.4.120.0770.04016.49
5.4.110.0600.05316.47
5.4.100.0800.04716.69
5.4.90.0570.05316.32
5.4.80.0570.05016.48
5.4.70.0530.04716.45
5.4.60.0600.05316.55
5.4.50.0600.05716.42
5.4.40.0600.04016.23
5.4.30.0570.05016.56
5.4.20.0570.04316.59
5.4.10.0630.05716.48
5.4.00.0630.04716.00

preferences:
57.32 ms | 401 KiB | 5 Q