3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { return 'foo bar'; } } $callback = array('Foo', 'bar'); if (is_callable($callback)) { echo call_user_func($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.3.60.0150.00616.38
8.3.50.0180.00521.91
8.3.40.0180.00418.46
8.3.30.0120.00919.09
8.3.20.0060.00320.34
8.3.10.0080.00023.61
8.3.00.0060.00319.10
8.2.180.0150.00318.11
8.2.170.0070.00722.96
8.2.160.0140.00620.58
8.2.150.0060.00324.18
8.2.140.0060.01224.66
8.2.130.0060.00326.16
8.2.120.0140.00422.11
8.2.110.0090.00022.26
8.2.100.0040.00717.72
8.2.90.0050.00319.09
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0030.00519.38
8.2.50.0060.00318.07
8.2.40.0030.00619.75
8.2.30.0030.00619.79
8.2.20.0040.00417.68
8.2.10.0040.00418.06
8.2.00.0030.00717.60
8.1.280.0120.00925.92
8.1.270.0090.00023.96
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0070.01424.01
8.1.230.0070.00419.08
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00717.00
8.1.190.0050.00317.41
8.1.180.0030.00618.10
8.1.170.0000.00818.52
8.1.160.0080.00021.86
8.1.150.0030.00518.62
8.1.140.0040.00417.37
8.1.130.0030.00317.82
8.1.120.0000.00717.39
8.1.110.0040.00417.42
8.1.100.0000.00717.41
8.1.90.0000.00717.45
8.1.80.0040.00417.27
8.1.70.0080.00017.23
8.1.60.0060.00317.52
8.1.50.0080.00017.37
8.1.40.0020.00517.35
8.1.30.0030.00517.57
8.1.20.0000.00917.63
8.1.10.0040.00417.50
8.1.00.0040.00417.39
8.0.300.0000.00719.27
8.0.290.0040.00417.04
8.0.280.0030.00318.35
8.0.270.0000.00717.30
8.0.260.0000.00717.19
8.0.250.0030.00316.92
8.0.240.0040.00416.82
8.0.230.0060.00316.74
8.0.220.0030.00316.83
8.0.210.0000.00716.88
8.0.200.0050.00216.86
8.0.190.0090.00016.89
8.0.180.0040.00416.85
8.0.170.0040.00416.76
8.0.160.0040.00416.85
8.0.150.0080.00016.68
8.0.140.0080.00016.71
8.0.130.0050.00013.36
8.0.120.0080.00016.77
8.0.110.0040.00416.88
8.0.100.0070.00016.87
8.0.90.0000.00716.86
8.0.80.0070.00816.79
8.0.70.0020.00516.87
8.0.60.0050.00216.70
8.0.50.0000.00716.74
8.0.30.0090.00916.85
8.0.20.0120.00717.40
8.0.10.0030.00516.79
8.0.00.0080.00916.52
7.4.330.0000.00515.00
7.4.320.0030.00316.45
7.4.300.0030.00316.49
7.4.290.0040.00416.40
7.4.280.0030.00316.45
7.4.270.0000.00716.56
7.4.260.0030.00316.59
7.4.250.0090.00016.55
7.4.240.0050.00216.60
7.4.230.0000.00716.41
7.4.220.0130.00416.67
7.4.210.0040.01116.65
7.4.200.0040.00416.55
7.4.190.0000.00716.69
7.4.160.0090.00616.54
7.4.150.0110.00617.40
7.4.140.0140.00617.86
7.4.130.0100.00716.43
7.4.120.0070.01016.51
7.4.110.0100.00716.55
7.4.100.0150.00916.58
7.4.90.0120.00616.54
7.4.80.0160.00719.39
7.4.70.0090.00916.46
7.4.60.0070.01416.61
7.4.50.0080.00016.48
7.4.40.0090.00622.77
7.4.30.0070.01016.58
7.4.00.0070.00714.67
7.3.330.0000.00513.31
7.3.320.0030.00313.07
7.3.310.0000.00716.34
7.3.300.0070.00016.35
7.3.290.0030.01016.25
7.3.280.0080.01116.32
7.3.270.0140.00317.40
7.3.260.0060.00916.52
7.3.250.0160.00616.48
7.3.240.0100.00616.36
7.3.230.0120.00516.47
7.3.210.0120.00916.33
7.3.200.0190.00319.39
7.3.190.0120.00916.24
7.3.180.0090.00616.33
7.3.170.0120.00316.53
7.3.160.0070.01116.52
7.3.120.0040.01114.80
7.2.330.0110.00616.39
7.2.320.0120.01216.71
7.2.310.0150.00316.55
7.2.300.0100.00716.69
7.2.290.0160.00016.27
7.2.60.0090.00616.61
7.2.00.0030.00919.40
7.1.200.0070.00715.75
7.1.100.0000.00917.71
7.1.70.0030.00517.14
7.1.60.0100.01319.46
7.1.50.0040.01116.97
7.1.00.0030.07722.54
7.0.200.0130.00016.79
7.0.140.0070.07022.08
7.0.60.0000.08019.92
7.0.50.0130.07717.94
7.0.40.0170.07019.96
7.0.30.0200.04320.45
7.0.20.0370.07320.10
7.0.10.0130.05020.30
7.0.00.0100.08320.27
5.6.280.0100.06720.86
5.6.210.0100.06720.63
5.6.200.0100.07718.16
5.6.190.0100.08020.46
5.6.180.0270.07320.50
5.6.170.0230.03320.48
5.6.160.0030.09020.57
5.6.150.0070.07718.22
5.6.140.0100.03318.14
5.6.130.0130.05718.29
5.6.120.0070.08020.97
5.6.110.0100.08020.98
5.6.100.0070.08721.01
5.6.90.0000.04321.08
5.6.80.0130.07720.38
5.5.350.0270.06720.40
5.5.340.0100.07717.98
5.5.330.0070.04320.13
5.5.320.0330.07720.25
5.5.310.0270.05320.26
5.5.300.0070.08018.05
5.5.290.0030.05717.95
5.5.280.0170.07320.97
5.5.270.0200.06320.67
5.5.260.0030.09020.84
5.5.250.0070.03720.61
5.5.240.0300.07020.20
5.4.450.0800.06019.60
5.4.440.0800.07319.59
5.4.430.0600.05019.62
5.4.420.0570.05719.18
5.4.410.0200.04719.48
5.4.400.0800.06319.16
5.4.390.0800.05719.15
5.4.380.0230.05318.74
5.4.370.0330.05018.75
5.4.360.0130.06318.75
5.4.350.0270.06318.63
5.4.340.0330.05318.62
5.4.320.0060.04212.50
5.4.310.0100.03912.50
5.4.300.0040.04412.50
5.4.290.0030.04612.48
5.4.280.0090.03512.38
5.4.270.0100.03512.38
5.4.260.0070.04012.38
5.4.250.0090.03812.38
5.4.240.0080.03812.38
5.4.230.0060.04112.37
5.4.220.0070.04112.38
5.4.210.0090.04112.38
5.4.200.0180.05412.37
5.4.190.0110.08012.37
5.4.180.0170.09412.37
5.4.170.0140.09512.38
5.4.160.0080.05412.37
5.4.150.0080.05312.38
5.4.140.0100.05412.05
5.4.130.0100.05012.04
5.4.120.0190.08412.00
5.4.110.0100.05612.00
5.4.100.0070.05512.00
5.4.90.0140.05712.00
5.4.80.0150.05312.00
5.4.70.0120.04911.99
5.4.60.0080.05311.99
5.4.50.0070.05711.99
5.4.40.0070.04011.98
5.4.30.0060.04011.98
5.4.20.0080.04011.98
5.4.10.0070.04711.98
5.4.00.0070.03611.47
5.3.290.0060.04312.80
5.3.280.0090.03912.71
5.3.270.0060.04212.72
5.3.260.0100.03812.72
5.3.250.0090.03712.72
5.3.240.0040.04712.72
5.3.230.0080.05212.71
5.3.220.0100.04112.68
5.3.210.0090.04612.68
5.3.200.0050.04012.68
5.3.190.0100.03912.68
5.3.180.0050.04512.67
5.3.170.0080.05312.67
5.3.160.0090.04012.68
5.3.150.0080.03712.67
5.3.140.0060.04012.66
5.3.130.0090.03912.66
5.3.120.0070.04212.66
5.3.110.0070.04212.66
5.3.100.0070.04112.12
5.3.90.0090.03512.09
5.3.80.0060.03612.09
5.3.70.0070.03812.09
5.3.60.0080.03712.07
5.3.50.0080.03612.02
5.3.40.0050.04312.02
5.3.30.0060.03711.98
5.3.20.0070.03911.76
5.3.10.0090.03511.74
5.3.00.0070.03911.71
5.2.170.0070.0379.22
5.2.160.0070.0309.22
5.2.150.0050.0319.22
5.2.140.0070.0289.21
5.2.130.0080.0279.17
5.2.120.0060.0279.18
5.2.110.0040.0299.18
5.2.100.0030.0309.17
5.2.90.0080.0409.18
5.2.80.0050.0329.17
5.2.70.0050.0319.17
5.2.60.0050.0439.13
5.2.50.0050.0309.10
5.2.40.0040.0319.07
5.2.30.0050.0379.04
5.2.20.0040.0319.03
5.2.10.0040.0308.93
5.2.00.0020.0328.80
5.1.60.0040.0248.09
5.1.50.0070.0238.09
5.1.40.0040.0258.06
5.1.30.0060.0258.41
5.1.20.0060.0258.44
5.1.10.0070.0308.16
5.1.00.0070.0298.16
5.0.50.0090.0176.63
5.0.40.0070.0186.49
5.0.30.0050.0316.31
5.0.20.0060.0176.27
5.0.10.0040.0216.25
5.0.00.0050.0326.25
4.4.90.0050.0184.78
4.4.80.0060.0194.76
4.4.70.0060.0194.75
4.4.60.0000.0264.76
4.4.50.0070.0194.77
4.4.40.0070.0344.71
4.4.30.0050.0164.76
4.4.20.0020.0224.85
4.4.10.0050.0154.85
4.4.00.0050.0234.76
4.3.110.0080.0324.67
4.3.100.0090.0304.66
4.3.90.0080.0334.63
4.3.80.0050.0324.58
4.3.70.0070.0214.63
4.3.60.0030.0184.63
4.3.50.0060.0214.63
4.3.40.0050.0284.54
4.3.30.0040.0163.30
4.3.20.0050.0253.28
4.3.10.0040.0173.24
4.3.00.0000.01310.54

preferences:
46.83 ms | 401 KiB | 5 Q