3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo1(&$bar = 1) {} function foo2(&$bar = true) {} function foo3(&$bar = []) {} function foo4(&$bar = null) {} foo1($bar1); foo2($bar2); foo3($bar3); foo4($bar4); var_dump($bar1, $bar2, $bar3, $bar4);

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.0070.00718.29
8.3.50.0080.00721.02
8.3.40.0040.01118.42
8.3.30.0080.00618.96
8.3.20.0050.00220.16
8.3.10.0040.00422.10
8.3.00.0040.00422.21
8.2.180.0110.00416.38
8.2.170.0070.00722.96
8.2.160.0000.01519.13
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00819.54
8.2.110.0130.00720.53
8.2.100.0060.00617.74
8.2.90.0080.00018.92
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00417.64
8.2.50.0040.00418.07
8.2.40.0090.00018.21
8.2.30.0040.00417.86
8.2.20.0050.00217.52
8.2.10.0040.00417.63
8.2.00.0060.00317.56
8.1.280.0170.00325.92
8.1.270.0090.00020.29
8.1.260.0000.00726.35
8.1.250.0090.00028.09
8.1.240.0040.00717.23
8.1.230.0040.00822.64
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.41
8.1.180.0060.00320.23
8.1.170.0080.00018.61
8.1.160.0000.00722.07
8.1.150.0050.00218.52
8.1.140.0000.00717.32
8.1.130.0030.00317.67
8.1.120.0040.00417.22
8.1.110.0040.00417.16
8.1.100.0030.00317.38
8.1.90.0000.00717.23
8.1.80.0070.00017.38
8.1.70.0030.00317.29
8.1.60.0000.00817.54
8.1.50.0000.00817.51
8.1.40.0000.00717.46
8.1.30.0000.00817.60
8.1.20.0040.00417.63
8.1.10.0000.00717.45
8.1.00.0000.00817.24
8.0.300.0070.00020.08
8.0.290.0060.00316.63
8.0.280.0000.00718.36
8.0.270.0030.00317.14
8.0.260.0000.00616.68
8.0.250.0070.00016.71
8.0.240.0050.00516.77
8.0.230.0000.00816.85
8.0.220.0000.00716.82
8.0.210.0000.00816.83
8.0.200.0030.00316.82
8.0.190.0000.00916.86
8.0.180.0040.00416.82
8.0.170.0000.00816.76
8.0.160.0000.00716.81
8.0.150.0000.00716.67
8.0.140.0040.00416.70
8.0.130.0000.00513.22
8.0.120.0040.00416.68
8.0.110.0000.00716.68
8.0.100.0080.00016.63
8.0.90.0040.00416.84
8.0.80.0120.00616.71
8.0.70.0050.00216.75
8.0.60.0000.00716.60
8.0.50.0000.00716.64
8.0.30.0150.00716.99
8.0.20.0110.01317.40
8.0.10.0070.00016.69
8.0.00.0070.01116.61
7.4.330.0050.00015.00
7.4.320.0030.00316.24
7.4.300.0080.00016.35
7.4.290.0000.00716.43
7.4.280.0030.00316.56
7.4.270.0000.00816.38
7.4.260.0020.00516.47
7.4.250.0030.00316.43
7.4.240.0020.00516.49
7.4.230.0040.00416.56
7.4.220.0210.00616.47
7.4.210.0080.00816.56
7.4.200.0070.00016.43
7.4.190.0030.00316.67
7.4.160.0080.01116.21
7.4.150.0130.00617.40
7.4.140.0080.01017.86
7.4.130.0050.01216.48
7.4.120.0080.00916.45
7.4.110.0180.00016.31
7.4.100.0140.00316.34
7.4.90.0060.01616.39
7.4.80.0100.00719.39
7.4.70.0070.01416.22
7.4.60.0070.01016.29
7.4.50.0040.00016.23
7.4.40.0070.01022.77
7.4.30.0030.01416.56
7.4.00.0040.01114.68
7.3.330.0050.00013.03
7.3.320.0000.00512.96
7.3.310.0060.00016.09
7.3.300.0000.00716.07
7.3.290.0080.00616.26
7.3.280.0100.00816.27
7.3.270.0060.00917.40
7.3.260.0120.00616.34
7.3.250.0060.01116.22
7.3.240.0100.00716.30
7.3.230.0040.01516.39
7.3.210.0080.00916.25
7.3.200.0060.01319.39
7.3.190.0100.00716.52
7.3.180.0090.00616.55
7.3.170.0080.00816.41
7.3.160.0050.01016.41
7.3.120.0030.01314.91
7.2.330.0120.00616.46
7.2.320.0110.00716.22
7.2.310.0100.00716.47
7.2.300.0060.01516.53
7.2.290.0040.01316.27
7.2.00.0000.01019.20
7.1.100.0060.00618.27
7.1.70.0000.00916.93
7.1.60.0100.01619.82
7.1.50.0120.00616.62
7.1.00.0030.03322.45
7.0.200.0070.00316.61
7.0.140.0100.06322.12
7.0.60.0030.04019.98
7.0.50.0070.04317.73
7.0.40.0070.07320.13
7.0.30.0470.03720.06
7.0.20.0200.04320.30
7.0.10.0200.04320.16
7.0.00.0000.04320.19
5.6.280.0100.06720.93
5.6.210.0100.04720.73
5.6.200.0100.05018.18
5.6.190.0100.04020.47
5.6.180.4170.04020.67
5.6.170.0270.06320.55
5.6.160.0100.08020.52
5.6.150.0130.07318.29
5.6.140.0070.05718.16
5.6.130.0030.04318.29
5.6.120.0170.07721.01
5.6.110.0100.06321.14
5.6.100.0070.08320.99
5.6.90.0030.09020.97
5.6.80.0100.03720.39
5.6.70.0200.07720.36
5.5.350.0170.08020.40
5.5.340.0000.07717.95
5.5.330.0100.05320.37
5.5.320.0270.08020.35
5.5.310.0430.07320.32
5.5.300.0030.04017.95
5.5.290.0170.07018.08
5.5.280.0100.05020.98
5.5.270.0100.08320.79
5.5.260.0130.07720.84
5.5.250.0070.07720.50
5.5.240.0030.08020.12
5.4.450.0700.05319.59
5.4.440.0800.05719.55
5.4.430.0930.06719.36
5.4.420.0100.05319.38
5.4.410.0170.05019.35
5.4.400.0330.06718.50
5.4.390.0530.06718.70
5.4.380.0400.05018.84
5.4.370.0130.05318.77
5.4.360.0170.06018.59
5.4.350.0070.04612.02
5.4.340.0080.04912.02
5.4.320.0080.03412.50
5.4.310.0090.04912.50
5.4.300.0080.04212.50
5.4.290.0060.04412.50
5.4.280.0070.04212.39
5.4.270.0050.05112.40
5.4.260.0090.03912.40
5.4.250.0200.06318.75
5.4.240.0030.08018.65
5.4.230.0100.05018.99
5.4.220.0170.07019.10
5.4.210.0130.05319.02
5.4.200.0100.05019.00
5.4.190.0070.05718.80
5.4.180.0030.05318.83
5.4.170.0130.04719.00
5.4.160.0170.06018.79
5.4.150.0070.05318.77
5.4.140.0130.04316.36
5.4.130.0100.04316.50
5.4.120.0100.04316.40
5.4.110.0130.04716.45
5.4.100.0070.05016.68
5.4.90.0070.06716.68
5.4.80.0130.04016.60
5.4.70.0030.05716.52
5.4.60.0100.04316.35
5.4.50.0000.05316.46
5.4.40.0100.04316.54
5.4.30.0030.05016.54
5.4.20.0170.05716.38
5.4.10.0130.04316.31
5.4.00.0030.05016.09
5.3.290.0030.04312.80
5.3.280.0070.05314.50
5.3.270.0100.05014.83
5.3.260.0070.05314.43
5.3.250.0070.07014.59
5.3.240.0170.05014.60
5.3.230.0100.04714.57
5.3.220.0070.05014.56
5.3.210.0100.05014.66
5.3.200.0100.04714.79
5.3.190.0100.04714.71
5.3.180.0070.05014.65
5.3.170.0070.06314.73
5.3.160.0070.05014.40
5.3.150.0100.04714.39
5.3.140.0100.06014.39
5.3.130.0030.05714.52
5.3.120.0130.04714.64
5.3.110.0070.05314.64
5.3.100.0070.07314.06
5.3.90.0070.04714.00
5.3.80.0130.04314.09
5.3.70.0130.06314.19
5.3.60.0130.06014.23
5.3.50.0070.04714.13
5.3.40.0130.05314.04
5.3.30.0030.05014.08
5.3.20.0000.05313.66
5.3.10.0130.04313.56
5.3.00.0070.05013.81
5.2.170.0170.05011.37
5.2.160.0100.04711.10
5.2.150.0130.04310.98
5.2.140.0000.04311.23
5.2.130.0030.04311.10
5.2.120.0070.04311.07
5.2.110.0100.03311.18
5.2.100.0030.04010.95
5.2.90.0030.04011.18
5.2.80.0070.04311.15
5.2.70.0030.04311.07
5.2.60.0070.03711.12
5.2.50.0030.04010.86
5.2.40.0000.04311.01
5.2.30.0030.04311.05
5.2.20.0070.03710.79
5.2.10.0030.03710.95
5.2.00.0000.04310.68
5.1.60.0070.0309.91
5.1.50.0170.03710.01
5.1.40.0030.0339.95
5.1.30.0070.03310.40
5.1.20.0030.03710.42
5.1.10.0000.0379.90
5.1.00.0030.03310.05
5.0.50.0030.0338.50
5.0.40.0100.0238.25
5.0.30.0030.0608.17
5.0.20.0030.0278.18
5.0.10.0100.0338.16
5.0.00.0100.0508.26
4.4.90.0030.0206.96
4.4.80.0030.0206.96
4.4.70.0000.0236.96
4.4.60.0030.0206.96
4.4.50.0000.0236.96
4.4.40.0100.0276.96
4.4.30.0000.0236.96
4.4.20.0030.0206.96
4.4.10.0000.0236.96
4.4.00.0030.0336.96
4.3.110.0000.0236.96
4.3.100.0000.0236.96
4.3.90.0030.0236.96
4.3.80.0000.0436.96
4.3.70.0070.0276.96
4.3.60.0070.0176.96
4.3.50.0070.0206.96
4.3.40.0000.0506.96
4.3.30.0070.0236.96
4.3.20.0030.0206.96
4.3.10.0030.0206.96
4.3.00.0000.0237.59

preferences:
50.34 ms | 401 KiB | 5 Q