3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function () { echo 'hello'; }; function myfunction(callable $a, callable $b = null) { if (null !== $a) call_user_func($a); if (null !== $b) call_user_func($b); } myfunction($a);

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.35
8.3.50.0130.00721.31
8.3.40.0080.00818.77
8.3.30.0110.00318.80
8.3.20.0020.00520.33
8.3.10.0080.00023.65
8.3.00.0040.00419.81
8.2.180.0120.00316.50
8.2.170.0110.01122.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00417.50
8.2.110.0090.00420.93
8.2.100.0030.00917.72
8.2.90.0030.00617.74
8.2.80.0090.00017.97
8.2.70.0060.00317.63
8.2.60.0030.00617.91
8.2.50.0060.00318.07
8.2.40.0040.00419.37
8.2.30.0030.00519.92
8.2.20.0000.00817.54
8.2.10.0040.00417.97
8.2.00.0040.00418.04
8.1.280.0070.01425.92
8.1.270.0000.00720.28
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00622.54
8.1.230.0000.01020.96
8.1.220.0000.00817.74
8.1.210.0080.00018.88
8.1.200.0030.00617.13
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00421.95
8.1.150.0040.00418.88
8.1.140.0080.00017.45
8.1.130.0030.00617.66
8.1.120.0040.00417.45
8.1.110.0000.00717.49
8.1.100.0000.00917.44
8.1.90.0070.00017.46
8.1.80.0050.00317.39
8.1.70.0070.00017.48
8.1.60.0050.00317.50
8.1.50.0000.00817.50
8.1.40.0040.00417.39
8.1.30.0040.00417.54
8.1.20.0000.00717.52
8.1.10.0050.00217.51
8.1.00.0040.00417.46
8.0.300.0000.00920.03
8.0.290.0070.00016.75
8.0.280.0000.00718.39
8.0.270.0000.00717.25
8.0.260.0030.00517.16
8.0.250.0000.00716.82
8.0.240.0000.00816.97
8.0.230.0000.00816.88
8.0.220.0090.00016.87
8.0.210.0000.00816.94
8.0.200.0030.00316.91
8.0.190.0030.00716.97
8.0.180.0030.00616.95
8.0.170.0000.00816.99
8.0.160.0040.00416.92
8.0.150.0000.00716.88
8.0.140.0030.00316.93
8.0.130.0040.00413.35
8.0.120.0030.00616.97
8.0.110.0070.00016.85
8.0.100.0040.00416.86
8.0.90.0070.00016.79
8.0.80.0060.01016.92
8.0.70.0080.00016.95
8.0.60.0000.00717.04
8.0.50.0000.00716.93
8.0.30.0100.00717.17
8.0.20.0100.01217.40
8.0.10.0080.00017.13
8.0.00.0110.00916.87
7.4.330.0030.00315.08
7.4.320.0000.00716.53
7.4.300.0000.00616.58
7.4.290.0000.00916.42
7.4.280.0080.00016.54
7.4.270.0070.00016.55
7.4.260.0030.00316.50
7.4.250.0030.00616.45
7.4.240.0030.00416.58
7.4.230.0040.00416.39
7.4.220.0040.01416.44
7.4.210.0120.00916.43
7.4.200.0040.00416.70
7.4.160.0130.00316.40
7.4.150.0110.00817.40
7.4.140.0100.01117.86
7.4.130.0100.00816.42
7.4.120.0090.00916.50
7.4.110.0130.01016.52
7.4.100.0070.01016.47
7.4.90.0100.00616.73
7.4.80.0060.01219.39
7.4.70.0150.00916.32
7.4.60.0000.01716.45
7.4.50.0040.00416.41
7.4.40.0040.01116.64
7.4.30.0130.01516.57
7.4.00.0030.01315.24
7.3.330.0000.00513.25
7.3.320.0000.00613.30
7.3.310.0070.00016.26
7.3.300.0000.00716.29
7.3.290.0070.01116.26
7.3.280.0060.01216.25
7.3.270.0140.01017.40
7.3.260.0090.00916.63
7.3.250.0060.01016.28
7.3.240.0040.01216.43
7.3.230.0110.00716.45
7.3.210.0130.00316.26
7.3.200.0130.00316.54
7.3.190.0180.00016.38
7.3.180.0070.01016.56
7.3.170.0090.01316.30
7.3.160.0060.01416.67
7.2.330.0110.00716.84
7.2.320.0070.01016.86
7.2.310.0060.01016.43
7.2.300.0030.01416.39
7.2.290.0170.00016.87
7.2.00.0040.00819.53
7.1.100.0030.01018.15
7.1.70.0040.00417.09
7.1.60.0060.00619.12
7.1.50.0150.00734.95
7.1.00.0030.07322.42
7.0.200.0090.00316.73
7.0.60.0070.07319.93
7.0.50.0070.08017.91
7.0.40.0170.07320.02
7.0.30.0270.04020.25
7.0.20.0330.05020.09
7.0.10.0030.04720.24
7.0.00.0070.05020.32
5.6.280.0030.04320.93
5.6.210.0070.06020.50
5.6.200.0070.05018.19
5.6.190.0100.06720.68
5.6.180.0430.07320.77
5.6.170.0200.04720.48
5.6.160.0170.07020.50
5.6.150.0070.07318.16
5.6.140.0070.08318.15
5.6.130.0000.06018.19
5.6.120.0170.07720.97
5.6.110.0100.08720.99
5.6.100.0070.07321.13
5.6.90.0030.04020.88
5.6.80.0070.08020.52
5.5.350.3700.03720.34
5.5.340.0030.04018.06
5.5.330.0070.07720.13
5.5.320.0100.04720.32
5.5.310.0230.05720.23
5.5.300.0130.06318.06
5.5.290.0030.04017.95
5.5.280.0030.06320.98
5.5.270.0200.07020.89
5.5.260.0070.04320.80
5.5.250.0170.07720.69
5.5.240.0100.08320.07
5.4.450.4070.03719.28
5.4.440.4370.03719.41
5.4.430.4300.04019.56
5.4.420.4830.03319.41
5.4.410.4570.04319.33
5.4.400.3670.03719.18
5.4.390.3900.03719.19
5.4.380.3730.04319.23
5.4.370.3800.03719.09
5.4.360.4230.04018.99
5.4.350.4030.03718.82
5.4.340.3770.05018.87
5.4.320.3970.03719.16
5.4.310.3570.04318.87
5.4.300.4170.04019.09
5.4.290.3530.03719.31
5.4.280.3630.03319.23
5.4.270.3670.03719.15
5.4.260.3930.03318.89
5.4.250.3600.04318.94
5.4.240.3870.04019.14
5.4.230.4200.03318.99
5.4.220.4400.03719.15
5.4.210.4170.03319.22
5.4.200.3970.03718.97
5.4.190.3400.04719.12
5.4.180.3600.04019.08
5.4.170.3600.04319.21
5.4.160.3970.02319.19
5.4.150.3870.04318.86
5.4.140.3430.03016.57
5.4.130.3470.03316.36
5.4.120.3630.03016.71
5.4.110.3700.03316.59
5.4.100.3130.03716.24
5.4.90.3300.03716.63
5.4.80.3600.03716.30

preferences:
41.59 ms | 401 KiB | 5 Q