3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function b() { } } function a (callable $a) { } a('a'); a(array('A', 'b'));

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.0120.00316.50
8.3.50.0110.00518.39
8.3.40.0150.00318.89
8.3.30.0110.00718.64
8.3.20.0080.00018.55
8.3.10.0000.00818.52
8.3.00.0040.00419.13
8.2.180.0120.00316.38
8.2.170.0150.00022.96
8.2.160.0070.01018.84
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00419.66
8.2.110.0040.00722.29
8.2.100.0130.00317.66
8.2.90.0050.00317.50
8.2.80.0000.00818.48
8.2.70.0030.00717.38
8.2.60.0030.00617.43
8.2.50.0040.00417.68
8.2.40.0040.00419.23
8.2.30.0040.00517.66
8.2.20.0030.00617.60
8.2.10.0040.00417.62
8.2.00.0000.00717.60
8.1.280.0120.00625.92
8.1.270.0030.00623.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00921.87
8.1.230.0030.00717.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00717.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00718.94
8.1.150.0040.00418.52
8.1.140.0020.00517.31
8.1.130.0070.00019.16
8.1.120.0050.00217.30
8.1.110.0000.00817.28
8.1.100.0040.00417.34
8.1.90.0050.00317.33
8.1.80.0040.00417.37
8.1.70.0030.00317.23
8.1.60.0060.00317.54
8.1.50.0000.00717.28
8.1.40.0000.00717.48
8.1.30.0070.00317.59
8.1.20.0060.00317.59
8.1.10.0040.00417.41
8.1.00.0000.00717.25
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00518.43
8.0.270.0000.00717.16
8.0.260.0030.00316.75
8.0.250.0050.00316.94
8.0.240.0000.00916.91
8.0.230.0040.00416.82
8.0.220.0070.00016.74
8.0.210.0040.00416.83
8.0.200.0030.00316.75
8.0.190.0070.00016.77
8.0.180.0000.00716.73
8.0.170.0000.00816.71
8.0.160.0040.00416.73
8.0.150.0040.00416.77
8.0.140.0040.00716.64
8.0.130.0000.00513.21
8.0.120.0030.00616.72
8.0.110.0040.00416.88
8.0.100.0040.00416.60
8.0.90.0050.00216.87
8.0.80.0100.00716.84
8.0.70.0040.00416.89
8.0.60.0030.00616.61
8.0.50.0020.00516.80
8.0.30.0090.00916.83
8.0.20.0050.01417.11
8.0.10.0040.00416.89
8.0.00.0080.01016.38
7.4.330.0030.00312.93
7.4.320.0050.00216.48
7.4.300.0000.00616.43
7.4.290.0030.00316.54
7.4.280.0050.00316.56
7.4.270.0070.00016.44
7.4.260.0050.00013.24
7.4.250.0080.00016.28
7.4.240.0000.00716.55
7.4.230.0030.00316.52
7.4.220.0140.00616.36
7.4.210.0030.01016.45
7.4.200.0030.00516.41
7.4.190.0000.00716.70
7.4.160.0090.00616.39
7.4.150.0000.01916.54
7.4.140.0080.01117.86
7.4.130.0120.00916.37
7.4.120.0160.00316.33
7.4.110.0100.00716.42
7.4.100.0150.00316.35
7.4.90.0100.00716.37
7.4.80.0100.00719.39
7.4.70.0140.00716.30
7.4.60.0070.01016.58
7.4.50.0000.00416.11
7.4.40.0020.01116.41
7.4.30.0100.00616.29
7.4.00.0090.00715.04
7.3.330.0060.00013.07
7.3.320.0030.00313.29
7.3.310.0000.00716.10
7.3.300.0030.00316.20
7.3.290.0060.00916.25
7.3.280.0000.01516.21
7.3.270.0100.01016.38
7.3.260.0120.00816.34
7.3.240.0100.00616.45
7.3.230.0140.00516.26
7.3.210.0120.00616.21
7.3.200.0090.00616.18
7.3.190.0040.01116.39
7.3.180.0140.00416.29
7.3.170.0100.01016.25
7.3.160.0070.00816.25
7.3.120.0040.01314.73
7.3.110.0030.01314.87
7.3.100.0090.00614.77
7.3.90.0100.00614.82
7.3.80.0030.01014.68
7.3.70.0000.01314.88
7.3.60.0070.01014.67
7.3.50.0030.00614.48
7.3.40.0040.01214.71
7.3.30.0030.01014.56
7.3.20.0040.01116.46
7.3.10.0070.00716.48
7.3.00.0060.00616.52
7.2.330.0110.00716.25
7.2.320.0170.00316.61
7.2.310.0090.00916.60
7.2.300.0050.01216.63
7.2.290.0100.00716.32
7.2.250.0040.01515.11
7.2.240.0070.01014.48
7.2.230.0030.00914.83
7.2.220.0100.00314.76
7.2.210.0090.00614.71
7.2.200.0030.01015.01
7.2.190.0070.00314.60
7.2.180.0030.01314.77
7.2.170.0080.00814.94
7.2.00.0040.00819.03
7.1.330.0040.01115.80
7.1.320.0000.01515.52
7.1.310.0090.00615.73
7.1.300.0060.00315.60
7.1.290.0130.00315.42
7.1.280.0040.01115.41
7.1.270.0000.01115.71
7.1.260.0060.00915.68
7.1.100.0030.01417.85
7.1.70.0000.00816.89
7.1.60.0060.01919.21
7.1.50.0090.01516.54
7.1.00.0000.05022.57
7.0.200.0000.00816.61
7.0.140.0000.07721.94
7.0.120.0000.07721.96
7.0.60.0100.08020.07
7.0.50.0070.05317.89
7.0.40.0030.09020.32
7.0.30.0300.06720.23
7.0.20.0230.03720.22
7.0.10.0300.08320.13
7.0.00.0100.03720.25
5.6.280.0030.09021.06
5.6.210.0100.07320.70
5.6.200.0130.05318.18
5.6.190.0000.04720.33
5.6.180.0300.05320.30
5.6.170.0230.08020.54
5.6.160.0030.07720.45
5.6.150.0170.07718.18
5.6.140.0030.06018.27
5.6.130.0130.07718.30
5.6.120.0100.04721.15
5.6.110.0100.08720.90
5.6.100.0170.04320.98
5.6.90.0000.06321.04
5.6.80.0100.08020.36
5.6.70.0270.04020.38
5.5.350.0230.07720.44
5.5.340.0170.07018.07
5.5.330.0070.04020.27
5.5.320.0230.03720.43
5.5.310.0200.05020.27
5.5.300.0070.05717.98
5.5.290.0070.08717.91
5.5.280.0030.04720.78
5.5.270.0070.05720.96
5.5.260.0070.08020.89
5.5.250.0070.07720.58
5.5.240.0000.04320.12
5.4.450.0130.05019.27
5.4.440.0030.04019.57
5.4.430.0070.03719.19
5.4.420.0970.05019.63
5.4.410.1670.03719.18
5.4.400.2270.03019.09
5.4.390.1830.04318.88
5.4.380.2170.03719.20
5.4.370.2570.03719.15
5.4.360.2070.04319.20
5.4.350.1170.04019.09
5.4.340.0070.05719.01
5.4.320.0030.04318.95
5.4.310.0230.03318.87
5.4.300.0100.03319.24
5.4.290.0100.03719.13
5.4.280.0000.04018.87
5.4.270.0070.03318.95
5.4.260.0400.03319.22
5.4.250.1630.04018.83
5.4.240.2300.03319.13
5.4.230.2270.03319.23
5.4.220.1930.04019.19
5.4.210.2170.03719.16
5.4.200.2730.04018.99
5.4.190.2400.04019.07
5.4.180.2800.03719.30
5.4.170.0770.06719.25
5.4.160.0170.05319.11
5.4.150.0000.04318.82
5.4.140.0400.04016.38
5.4.130.2730.03316.40
5.4.120.2200.04016.55
5.4.110.2430.03716.50
5.4.100.2600.03016.61
5.4.90.2730.04016.61
5.4.80.2400.03716.40
5.4.70.1670.03716.57
5.4.60.2430.03016.51
5.4.50.2630.03316.25
5.4.40.2300.04016.52
5.4.30.2670.03316.25
5.4.20.2730.04716.53
5.4.10.2770.03716.21
5.4.00.2230.04015.73
5.3.290.2230.04714.58
5.3.280.2400.03714.57
5.3.270.2570.04014.57
5.3.260.2470.04014.66
5.3.250.2430.03714.65
5.3.240.2500.03714.75
5.3.230.2000.03714.51
5.3.220.2030.03714.57
5.3.210.2500.03314.47
5.3.200.2670.04314.71
5.3.190.2500.04014.79
5.3.180.2430.03714.61
5.3.170.2970.03314.55
5.3.160.2630.03014.46
5.3.150.3000.03714.64
5.3.140.1500.04014.66
5.3.130.0070.07314.69
5.3.120.1070.04014.66
5.3.110.0100.03314.63
5.3.100.0900.03314.01
5.3.90.0200.03713.99
5.3.80.0200.04013.94
5.3.70.0230.07313.93
5.3.60.0130.04714.01
5.3.50.0230.06713.88
5.3.40.0230.04713.87
5.3.30.0200.04313.93
5.3.20.0270.06713.61
5.3.10.0230.06713.66
5.3.00.0230.03313.57
5.2.170.0170.02711.38
5.2.160.0100.03311.38
5.2.150.0130.03311.38
5.2.140.0200.05711.07
5.2.130.0230.04711.01
5.2.120.0130.03711.02
5.2.110.0130.03011.07
5.2.100.0200.02311.33
5.2.90.0170.02711.11
5.2.80.0170.05311.14
5.2.70.0170.03011.07
5.2.60.0130.03310.95
5.2.50.0170.02710.99
5.2.40.0170.02311.07
5.2.30.0130.02710.88
5.2.20.0100.03011.04
5.2.10.0130.02710.81
5.2.00.0200.02010.61
5.1.60.0100.0309.88
5.1.50.0170.0479.93
5.1.40.0100.0239.96
5.1.30.0130.05710.45
5.1.20.0130.03310.25
5.1.10.0100.02710.05
5.1.00.0130.0409.98
5.0.50.0030.0378.60
5.0.40.0070.0238.49
5.0.30.0070.0308.45
5.0.20.0100.0438.32
5.0.10.0100.0208.16
5.0.00.0070.0708.32
4.4.90.0070.0377.74
4.4.80.0100.0237.74
4.4.70.0030.0207.74
4.4.60.0030.0177.74
4.4.50.0070.0137.74
4.4.40.0070.0237.74
4.4.30.0030.0177.74
4.4.20.0030.0177.74
4.4.10.0100.0137.74
4.4.00.0100.0207.74
4.3.110.0070.0177.74
4.3.100.0030.0177.74
4.3.90.0070.0137.74
4.3.80.0030.0277.74
4.3.70.0100.0107.74
4.3.60.0030.0177.74
4.3.50.0070.0137.74
4.3.40.0030.0237.74
4.3.30.0000.0307.74
4.3.20.0000.0207.74
4.3.10.0070.0207.74
4.3.00.0030.0207.74

preferences:
39.99 ms | 401 KiB | 5 Q