3v4l.org

run code in 300+ PHP versions simultaneously
<?php function format(&$collection) { $collection["prefix"] = 'ass'; } $collection = array('a' => 1, 'b' => 2, 'c' => 3); call_user_func_array('format', array($collection)); var_dump($collection);

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.0060.01216.75
8.3.50.0140.00616.59
8.3.40.0120.00418.71
8.3.30.0040.01118.53
8.3.20.0040.00418.95
8.3.10.0000.00818.77
8.3.00.0040.00419.51
8.2.180.0130.00616.50
8.2.170.0040.01122.96
8.2.160.0120.00318.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00020.67
8.2.110.0030.00620.51
8.2.100.0080.00317.84
8.2.90.0050.00319.09
8.2.80.0000.00819.32
8.2.70.0000.00817.63
8.2.60.0040.00418.01
8.2.50.0040.00419.35
8.2.40.0030.00518.22
8.2.30.0050.00318.06
8.2.20.0000.00917.68
8.2.10.0040.00417.68
8.2.00.0000.00717.89
8.1.280.0040.01125.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00722.07
8.1.230.0100.00320.93
8.1.220.0080.00018.77
8.1.210.0040.00419.04
8.1.200.0060.00317.35
8.1.190.0040.00417.52
8.1.180.0000.00818.10
8.1.170.0060.00318.74
8.1.160.0050.00318.89
8.1.150.0000.00718.64
8.1.140.0000.00717.36
8.1.130.0030.00317.79
8.1.120.0000.00717.49
8.1.110.0020.00517.49
8.1.100.0000.00717.49
8.1.90.0080.00017.41
8.1.80.0050.00317.34
8.1.70.0030.00317.36
8.1.60.0060.00317.47
8.1.50.0040.00417.45
8.1.40.0040.00417.54
8.1.30.0060.00317.54
8.1.20.0000.00717.55
8.1.10.0030.00617.57
8.1.00.0060.00317.54
8.0.300.0000.00819.94
8.0.290.0040.00416.88
8.0.280.0000.00718.45
8.0.270.0030.00517.31
8.0.260.0060.00016.90
8.0.250.0040.00417.00
8.0.240.0000.00716.95
8.0.230.0050.00217.00
8.0.220.0070.00016.86
8.0.210.0070.00017.00
8.0.200.0070.00017.02
8.0.190.0040.00417.01
8.0.180.0000.00716.84
8.0.170.0030.00616.86
8.0.160.0040.00416.91
8.0.150.0060.00316.84
8.0.140.0060.00316.80
8.0.130.0000.00613.43
8.0.120.0050.00216.97
8.0.110.0000.00816.83
8.0.100.0040.00416.92
8.0.90.0030.00516.98
8.0.80.0000.01516.95
8.0.70.0040.00416.90
8.0.60.0040.00416.86
8.0.50.0040.00416.89
8.0.30.0160.00317.27
8.0.20.0100.01017.25
8.0.10.0030.00517.07
8.0.00.0120.00916.84
7.4.330.0000.00512.88
7.4.320.0000.00616.52
7.4.300.0000.00716.56
7.4.290.0040.00416.51
7.4.280.0000.00816.41
7.4.270.0030.00316.58
7.4.260.0060.00013.29
7.4.250.0080.00016.57
7.4.240.0050.00316.40
7.4.230.0040.00316.52
7.4.220.0040.01416.46
7.4.210.0070.01416.62
7.4.200.0070.00016.55
7.4.190.0030.00516.47
7.4.160.0150.01116.77
7.4.150.0120.00516.57
7.4.140.0170.00016.58
7.4.130.0110.00716.49
7.4.120.0090.00916.44
7.4.110.0120.01216.55
7.4.100.0110.00516.74
7.4.90.0110.00716.50
7.4.80.0110.00516.70
7.4.70.0070.01016.34
7.4.60.0110.00716.51
7.4.50.0000.00816.56
7.4.40.0070.00716.41
7.4.30.0030.01316.47
7.4.00.0060.00915.06
7.3.330.0060.00013.34
7.3.320.0070.00013.21
7.3.310.0040.00416.33
7.3.300.0070.00016.32
7.3.290.0060.01316.41
7.3.280.0080.00716.47
7.3.270.0120.00416.43
7.3.260.0080.00916.36
7.3.250.0060.01216.39
7.3.240.0120.00616.37
7.3.230.0090.00616.65
7.3.210.0130.01016.33
7.3.200.0060.01619.39
7.3.190.0060.00916.59
7.3.180.0030.01216.60
7.3.170.0060.00916.47
7.3.160.0150.00716.47
7.3.120.0090.00315.12
7.2.330.0070.01016.64
7.2.320.0160.00616.29
7.2.310.0150.00316.48
7.2.300.0170.00416.72
7.2.290.0070.01116.41
7.2.00.0060.00919.17
7.1.100.0070.00717.82
7.1.70.0040.00417.05
7.1.60.0100.01319.30
7.1.50.0000.01516.94
7.1.00.0000.06022.26
7.0.200.0130.00616.75
7.0.140.0000.06722.21
7.0.120.0000.07322.16
7.0.60.0070.07021.73
7.0.50.0000.04317.87
7.0.40.0130.04020.40
7.0.30.0270.05020.23
7.0.20.0330.07320.06
7.0.10.0100.08320.02
7.0.00.0130.06020.20
5.6.280.0000.07721.07
5.6.210.0200.06320.45
5.6.200.0070.06018.27
5.6.190.0070.08320.57
5.6.180.0330.07720.64
5.6.170.0300.06320.62
5.6.160.0170.07720.50
5.6.150.0070.06718.14
5.6.140.0070.06018.19
5.6.130.0000.04318.20
5.6.120.0100.04320.99
5.6.110.0100.08320.99
5.6.100.0070.08720.96
5.6.90.0170.07320.98
5.6.80.0030.08020.46
5.5.350.0130.08020.30
5.5.340.0070.05718.05
5.5.330.0100.08020.13
5.5.320.0300.08020.34
5.5.310.0330.07320.35
5.5.300.0100.07318.09
5.5.290.0030.04718.07
5.5.280.0270.05020.88
5.5.270.0070.04020.65
5.5.260.0130.08020.89
5.5.250.0030.04020.66
5.5.240.0000.06020.04
5.4.450.0030.05719.57
5.4.440.0100.04019.47
5.4.430.0000.04019.47
5.4.420.0030.03719.32
5.4.410.0000.04019.05
5.4.400.0030.03719.01
5.4.390.0000.04319.20
5.4.380.0170.04319.15
5.4.370.0030.04718.87
5.4.360.0030.04019.12
5.4.350.0030.03719.20
5.4.340.0000.04019.14
5.4.320.0030.03719.08
5.4.310.0000.04019.25
5.4.300.0030.03719.24
5.4.290.0100.03018.86
5.4.280.0030.04318.87
5.4.270.0070.03719.11
5.4.260.0100.03719.14
5.4.250.0070.04318.86
5.4.240.0000.04018.88
5.4.230.0030.03718.97
5.4.220.0070.05719.15
5.4.210.0100.07019.23
5.4.200.0070.06719.20
5.4.190.0070.04719.23
5.4.180.0070.08019.13
5.4.170.0030.04019.08
5.4.160.0170.03719.13
5.4.150.0030.04019.22
5.4.140.0070.04316.46
5.4.130.0270.02716.37
5.4.120.0070.06716.41
5.4.110.0100.07016.43
5.4.100.0100.03316.30
5.4.90.0030.03716.27
5.4.80.0070.05716.24
5.4.70.0000.06716.41
5.4.60.0030.06316.53
5.4.50.0100.06016.49
5.4.40.0070.07016.39
5.4.30.0070.07316.40
5.4.20.0070.04316.30
5.4.10.0200.05016.38
5.4.00.0030.07315.79
5.3.290.0000.04014.70
5.3.280.0030.03714.51
5.3.270.0000.05014.64
5.3.260.0070.07314.63
5.3.250.0000.07714.52
5.3.240.0200.06014.67
5.3.230.0070.07014.61
5.3.220.0100.05714.57
5.3.210.0070.08014.64
5.3.200.0030.05714.47
5.3.190.0070.03314.58
5.3.180.0000.05314.59
5.3.170.0100.03714.61
5.3.160.0000.04714.55
5.3.150.0030.04014.58
5.3.140.0100.07014.60
5.3.130.0030.04314.57
5.3.120.0070.03714.71
5.3.110.0100.07314.47
5.3.100.0100.03314.07
5.3.90.0030.03714.09
5.3.80.0130.05714.04
5.3.70.0030.04014.07
5.3.60.0030.04014.07
5.3.50.0030.03713.86
5.3.40.0100.07013.96
5.3.30.0030.04713.79
5.3.20.0030.04713.61
5.3.10.0000.04713.62
5.3.00.0070.07313.55
5.2.170.0030.06311.10
5.2.160.0030.03711.30
5.2.150.0070.03311.21
5.2.140.0030.03711.20
5.2.130.0030.06010.99
5.2.120.0030.04011.18
5.2.110.0070.03011.14
5.2.100.0000.03311.10
5.2.90.0030.04311.15
5.2.80.0000.03311.23
5.2.70.0000.04011.14
5.2.60.0000.04011.07
5.2.50.0070.03311.18
5.2.40.0070.02710.91
5.2.30.0070.05310.88
5.2.20.0000.05310.96
5.2.10.0030.03010.88
5.2.00.0030.03710.80
5.1.60.0030.02710.07
5.1.50.0030.04310.05
5.1.40.0030.05310.04
5.1.30.0000.05710.33
5.1.20.0030.02710.39
5.1.10.0030.05710.09
5.1.00.0070.04010.08
5.0.50.0000.0338.61
5.0.40.0070.0238.47
5.0.30.0030.0478.18
5.0.20.0030.0378.34
5.0.10.0030.0438.07
5.0.00.0030.0438.11
4.4.90.0000.0377.86
4.4.80.0030.0237.86
4.4.70.0000.0237.86
4.4.60.0000.0277.86
4.4.50.0000.0207.86
4.4.40.0030.0237.86
4.4.30.0000.0277.86
4.4.20.0000.0177.86
4.4.10.0100.0277.86
4.4.00.0100.0307.86
4.3.110.0070.0207.86
4.3.100.0000.0207.86
4.3.90.0000.0307.86
4.3.80.0030.0237.86
4.3.70.0070.0307.86
4.3.60.0000.0377.86
4.3.50.0070.0137.86
4.3.40.0000.0437.86
4.3.30.0030.0237.86
4.3.20.0000.0207.86
4.3.10.0030.0237.86
4.3.00.0030.0137.86

preferences:
37.88 ms | 401 KiB | 5 Q