3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo1($a=null, $b) { printf('foo1: %s, %s', var_export($a, true), var_export($b, true)); } function foo2($a, $b=null, $c) { printf('foo2: %s, %s, %s', var_export($a, true), var_export($b, true), var_export($c, true)); } foo1(1, 2); foo1(3); foo2(4); foo2(4, 5); foo2(4, 5, 6);

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.0100.01018.55
8.3.50.0110.01022.07
8.3.40.0150.00018.84
8.3.30.0060.00819.17
8.3.20.0070.00020.37
8.3.10.0040.00420.45
8.3.00.0040.00717.63
8.2.180.0150.00716.63
8.2.170.0070.00722.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00422.09
8.2.110.0060.00322.09
8.2.100.0060.00617.72
8.2.90.0040.00419.28
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0030.00617.55
8.2.50.0030.00618.07
8.2.40.0000.00718.06
8.2.30.0000.00719.43
8.2.20.0040.00417.75
8.2.10.0000.00718.05
8.2.00.0050.00317.57
8.1.280.0110.00425.92
8.1.270.0080.00023.82
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0070.00419.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0050.00317.23
8.1.180.0070.00018.10
8.1.170.0040.00418.54
8.1.160.0000.00721.94
8.1.150.0030.00318.69
8.1.140.0000.00817.29
8.1.130.0030.00317.64
8.1.120.0080.00017.33
8.1.110.0070.00017.35
8.1.100.0000.00717.37
8.1.90.0050.00517.34
8.1.80.0000.00717.39
8.1.70.0030.00317.32
8.1.60.0000.00917.54
8.1.50.0060.00317.45
8.1.40.0040.00417.48
8.1.30.0030.00617.58
8.1.20.0030.00517.55
8.1.10.0050.00317.43
8.1.00.0000.00817.34
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.40
8.0.270.0040.00417.19
8.0.260.0030.00317.21
8.0.250.0030.00317.00
8.0.240.0040.00416.95
8.0.230.0050.00217.00
8.0.220.0030.00316.94
8.0.210.0040.00416.93
8.0.200.0000.00616.89
8.0.190.0100.00016.89
8.0.180.0070.00016.96
8.0.170.0040.00416.91
8.0.160.0000.00716.90
8.0.150.0040.00416.84
8.0.140.0000.00716.85
8.0.130.0000.00513.33
8.0.120.0000.00816.77
8.0.110.0060.00316.78
8.0.100.0050.00317.01
8.0.90.0040.00416.77
8.0.80.0060.00916.85
8.0.70.0080.00016.79
8.0.60.0040.00416.75
8.0.50.0040.00416.96
8.0.30.0090.00917.05
8.0.20.0090.01017.40
8.0.10.0040.00416.76
8.0.00.0140.00916.71
7.4.330.0020.00215.00
7.4.320.0000.00616.31
7.4.300.0000.00616.56
7.4.290.0030.00316.55
7.4.280.0040.00416.55
7.4.270.0030.00316.34
7.4.260.0000.00816.56
7.4.250.0000.00716.52
7.4.240.0040.00416.59
7.4.230.0030.00316.52
7.4.220.0180.00916.63
7.4.210.0070.01116.52
7.4.200.0000.00716.34
7.4.160.0130.00316.34
7.4.150.0110.00717.40
7.4.140.0070.00917.86
7.4.130.0090.00716.50
7.4.120.0100.01016.42
7.4.110.0120.00616.34
7.4.100.0150.00316.50
7.4.90.0110.00616.45
7.4.80.0080.01619.39
7.4.70.0120.00616.45
7.4.60.0070.01016.52
7.4.50.0030.00316.72
7.4.40.0080.00816.57
7.4.30.0120.00316.34
7.4.00.0070.00914.77
7.3.330.0060.00013.17
7.3.320.0000.00513.31
7.3.310.0030.00316.32
7.3.300.0000.00716.18
7.3.290.0070.00716.30
7.3.280.0100.00516.29
7.3.270.0130.00617.40
7.3.260.0090.01416.29
7.3.250.0080.00916.34
7.3.240.0120.00416.36
7.3.230.0120.00616.39
7.3.210.0310.01416.50
7.3.200.0030.01419.39
7.3.190.0080.00816.23
7.3.180.0100.00716.44
7.3.170.0030.01216.48
7.3.160.0090.00716.33
7.3.120.0100.00714.93
7.3.110.0040.01214.65
7.3.100.0070.00715.04
7.3.90.0040.01114.75
7.3.80.0100.00314.76
7.3.70.0030.00714.84
7.3.60.0070.00714.91
7.3.50.0040.01114.44
7.3.40.0060.00714.84
7.3.30.0030.01014.80
7.3.20.0030.00716.58
7.3.10.0040.00816.61
7.3.00.0060.00616.69
7.2.330.0120.00616.24
7.2.320.0140.00416.39
7.2.310.0120.00616.66
7.2.300.0060.01016.20
7.2.290.0090.01216.49
7.2.250.0000.01414.50
7.2.240.0170.00314.73
7.2.230.0000.01215.07
7.2.220.0080.00314.87
7.2.210.0060.00614.82
7.2.200.0000.01415.04
7.2.190.0030.01015.05
7.2.180.0070.00715.00
7.2.170.0060.00914.94
7.2.130.0030.00916.71
7.2.120.0090.00616.77
7.2.110.0040.01116.83
7.2.100.0040.00416.76
7.2.90.0000.01216.58
7.2.80.0000.01416.86
7.2.70.0070.00316.88
7.2.60.0010.01116.62
7.2.50.0030.00616.91
7.2.40.0110.00316.97
7.2.30.0070.00716.85
7.2.20.0120.00416.88
7.2.10.0040.00716.46
7.2.00.0040.01018.08
7.1.330.0030.01015.74
7.1.320.0040.01015.71
7.1.310.0030.00915.88
7.1.300.0000.01415.75
7.1.290.0040.00715.59
7.1.280.0060.00915.85
7.1.270.0110.00415.50
7.1.260.0060.00815.91
7.1.250.0070.00315.66
7.1.200.0060.00615.72
7.1.100.0030.01018.30
7.1.70.0060.00917.09
7.1.60.0100.00319.61
7.1.50.0040.01216.63
7.1.00.0000.08022.40
7.0.200.0140.00316.40
7.0.140.0030.07322.01
7.0.60.0000.05019.79
7.0.50.0070.07317.98
7.0.40.0030.10319.96
7.0.30.0500.07720.30
7.0.20.0300.08320.24
7.0.10.0200.04720.04
7.0.00.0070.08720.23
5.6.280.0000.07321.14
5.6.210.0070.08020.63
5.6.200.0070.05018.16
5.6.190.0100.08320.57
5.6.180.0230.07320.46
5.6.170.0500.07720.43
5.6.160.0030.04320.39
5.6.150.0030.05318.29
5.6.140.0070.05718.11
5.6.130.0070.07718.14
5.6.120.0070.08721.13
5.6.110.0130.07721.15
5.6.100.0130.06021.02
5.6.90.0030.08721.11
5.6.80.0070.05320.50
5.5.350.0070.06720.53
5.5.340.0130.06018.01
5.5.330.0170.04320.21
5.5.320.0200.06320.27
5.5.310.0270.03720.27
5.5.300.0070.08318.06
5.5.290.0130.07318.00
5.5.280.0070.06320.77
5.5.270.0170.05020.83
5.5.260.0170.07720.75
5.5.250.0100.07720.62
5.5.240.0130.07320.36
5.4.450.0170.05319.42
5.4.440.0330.04019.41
5.4.430.0370.04319.27
5.4.420.0630.03719.54
5.4.410.0300.04319.19
5.4.400.0670.04319.22
5.4.390.0170.04319.09
5.4.380.0400.04318.75
5.4.370.0270.05318.76
5.4.360.0170.06018.79
5.4.350.0170.06718.72
5.4.340.0230.05718.52
5.4.320.0080.04212.50
5.4.310.0090.03612.50
5.4.300.0050.03712.51
5.4.290.0060.03712.50
5.4.280.0060.03412.40
5.4.270.0050.04312.39
5.4.260.0080.03912.40
5.4.250.0050.04112.39
5.4.240.0080.04312.40
5.4.230.0080.03612.39
5.4.220.0100.03212.39
5.4.210.0060.03512.39
5.4.200.0080.03512.39
5.4.190.0050.03712.38
5.4.180.0040.03812.39
5.4.170.0060.03612.39
5.4.160.0070.03512.39
5.4.150.0130.03012.39
5.4.140.0070.03712.07
5.4.130.0070.03312.06
5.4.120.0080.03712.02
5.4.110.0040.03712.01
5.4.100.0090.03212.02
5.4.90.0080.03512.02
5.4.80.0060.03712.01
5.4.70.0060.03512.01
5.4.60.0050.03512.00
5.4.50.0100.03612.01
5.4.40.0120.03212.00
5.4.30.0100.03912.00
5.4.20.0100.03212.00
5.4.10.0080.03411.99
5.4.00.0100.03111.48
5.3.290.0070.04412.80
5.3.280.0070.03712.71
5.3.270.0020.04412.72
5.3.260.0070.03912.72
5.3.250.0060.03712.72
5.3.240.0070.04012.72
5.3.230.0100.04312.71
5.3.220.0060.04212.68
5.3.210.0100.04012.68
5.3.200.0060.03812.68
5.3.190.0060.03912.68
5.3.180.0050.03912.67
5.3.170.0060.03812.67
5.3.160.0080.03812.67
5.3.150.0060.03912.68
5.3.140.0060.03712.66
5.3.130.0110.04212.66
5.3.120.0060.04212.66
5.3.110.0100.04012.66
5.3.100.0070.03712.13
5.3.90.0050.04312.10
5.3.80.0070.03812.10
5.3.70.0070.03612.10
5.3.60.0070.03512.08
5.3.50.0050.03812.03
5.3.40.0050.04112.03
5.3.30.0050.03911.98
5.3.20.0080.03511.77
5.3.10.0130.03911.74
5.3.00.0080.03511.72
5.2.170.0060.0309.22
5.2.160.0100.0249.22
5.2.150.0030.0399.23
5.2.140.0070.0299.22
5.2.130.0040.0309.19
5.2.120.0050.0339.18
5.2.110.0070.0389.19
5.2.100.0060.0299.19
5.2.90.0090.0269.19
5.2.80.0050.0329.18
5.2.70.0070.0409.19
5.2.60.0040.0319.14
5.2.50.0030.0329.11
5.2.40.0050.0299.08
5.2.30.0050.0299.06
5.2.20.0050.0309.04
5.2.10.0080.0268.95
5.2.00.0080.0308.82
5.1.60.0030.0258.09
5.1.50.0030.0258.09
5.1.40.0030.0258.08
5.1.30.0090.0338.43
5.1.20.0080.0308.45
5.1.10.0030.0288.17
5.1.00.0010.0298.17
5.0.50.0050.0266.64
5.0.40.0050.0246.50
5.0.30.0020.0316.32
5.0.20.0020.0206.29
5.0.10.0020.0216.27
5.0.00.0000.0436.25
4.4.90.0020.0184.78
4.4.80.0030.0254.75
4.4.70.0020.0154.75
4.4.60.0010.0164.76
4.4.50.0010.0214.77
4.4.40.0060.0254.71
4.4.30.0050.0184.76
4.4.20.0030.0174.84
4.4.10.0040.0194.84
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0174.66
4.3.90.0020.0174.64
4.3.80.0040.0254.58
4.3.70.0020.0154.63
4.3.60.0040.0194.63
4.3.50.0030.0214.63
4.3.40.0020.0244.54
4.3.30.0010.0163.31
4.3.20.0030.0203.29
4.3.10.0050.0123.25
4.3.00.0000.02016.72

preferences:
35.11 ms | 401 KiB | 5 Q