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.0070.00716.25
8.3.50.0050.01018.11
8.3.40.0070.00718.59
8.3.30.0090.00618.44
8.3.20.0080.00018.93
8.3.10.0060.00320.54
8.3.00.0040.00419.50
8.2.180.0090.00925.92
8.2.170.0110.00418.81
8.2.160.0100.01022.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00518.82
8.2.110.0030.00721.00
8.2.100.0060.00617.72
8.2.90.0030.00619.30
8.2.80.0040.00419.39
8.2.70.0060.00317.63
8.2.60.0070.00417.93
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0000.00918.10
8.2.20.0030.00719.50
8.2.10.0070.00017.65
8.2.00.0020.00517.68
8.1.280.0100.00725.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0020.00528.09
8.1.240.0060.00322.38
8.1.230.0070.00320.97
8.1.220.0040.00417.74
8.1.210.0060.00318.95
8.1.200.0030.00617.38
8.1.190.0050.00317.53
8.1.180.0040.00818.10
8.1.170.0030.00620.62
8.1.160.0000.00718.81
8.1.150.0040.00418.62
8.1.140.0000.00817.50
8.1.130.0050.00317.74
8.1.120.0040.00717.35
8.1.110.0000.00717.49
8.1.100.0040.00417.34
8.1.90.0050.00217.39
8.1.80.0000.00717.43
8.1.70.0000.00717.37
8.1.60.0070.00417.58
8.1.50.0080.00017.45
8.1.40.0060.00317.59
8.1.30.0000.00717.63
8.1.20.0040.00417.55
8.1.10.0000.00817.66
8.1.00.0040.00417.39
8.0.300.0070.00019.86
8.0.290.0000.00816.75
8.0.280.0000.00718.36
8.0.270.0070.00017.31
8.0.260.0030.00316.83
8.0.250.0000.00716.96
8.0.240.0060.00316.86
8.0.230.0040.00416.95
8.0.220.0000.00716.78
8.0.210.0070.00016.88
8.0.200.0060.00016.93
8.0.190.0000.00716.97
8.0.180.0030.00516.96
8.0.170.0030.00516.81
8.0.160.0030.00316.73
8.0.150.0040.00416.92
8.0.140.0000.00716.86
8.0.130.0030.00313.34
8.0.120.0050.00316.86
8.0.110.0040.00416.91
8.0.100.0040.00416.77
8.0.90.0040.00416.84
8.0.80.0070.00716.84
8.0.70.0040.00416.73
8.0.60.0000.00716.88
8.0.50.0030.00616.93
8.0.30.0060.01016.79
8.0.20.0100.00917.00
8.0.10.0040.00417.06
8.0.00.0120.00716.62
7.4.330.0050.00013.00
7.4.320.0060.00016.56
7.4.300.0000.00616.45
7.4.290.0000.00716.58
7.4.280.0050.00216.52
7.4.270.0030.00316.66
7.4.260.0000.00513.20
7.4.250.0040.00416.41
7.4.240.0040.00416.48
7.4.230.0080.00016.41
7.4.220.0090.00916.46
7.4.210.0110.00416.64
7.4.200.0040.00416.68
7.4.190.0070.00016.36
7.4.160.0060.01016.50
7.4.150.0120.00616.34
7.4.140.0090.00916.48
7.4.130.0140.00416.53
7.4.120.0190.00416.48
7.4.110.0090.00916.45
7.4.100.0140.00816.55
7.4.90.0060.01216.50
7.4.80.0150.00419.39
7.4.70.0160.00016.44
7.4.60.0060.01016.46
7.4.50.0040.00416.41
7.4.40.0070.01016.61
7.4.30.0060.01316.54
7.4.00.0040.00714.78
7.3.330.0000.00513.15
7.3.320.0050.00013.30
7.3.310.0000.00716.27
7.3.300.0000.00716.23
7.3.290.0070.00616.34
7.3.280.0050.01016.39
7.3.270.0040.01516.53
7.3.260.0210.00016.57
7.3.250.0110.00916.37
7.3.240.0050.01216.61
7.3.230.0000.01716.29
7.3.210.0100.01016.43
7.3.200.0060.00916.44
7.3.190.0040.01816.44
7.3.180.0040.01216.47
7.3.170.0120.01216.59
7.3.160.0060.01116.59
7.3.120.0070.01015.04
7.3.110.0030.01314.89
7.3.100.0040.01115.00
7.3.90.0000.00914.73
7.3.80.0030.01214.78
7.3.70.0120.00314.85
7.3.60.0000.00814.79
7.3.50.0030.01314.64
7.3.40.0100.00014.49
7.3.30.0090.00314.72
7.3.20.0100.00316.69
7.3.10.0030.00716.73
7.3.00.0000.00916.67
7.2.330.0030.01416.61
7.2.320.0100.00716.57
7.2.310.0150.00916.68
7.2.300.0070.01016.60
7.2.290.0080.00816.58
7.2.240.0060.00915.14
7.2.230.0030.00715.06
7.2.220.0110.00014.62
7.2.210.0070.00714.80
7.2.200.0000.00914.82
7.2.190.0040.01114.95
7.2.180.0070.01014.66
7.2.170.0070.00714.97
7.2.160.0090.00614.68
7.2.150.0070.00716.77
7.2.140.0090.00616.69
7.2.130.0060.00916.84
7.2.120.0070.00316.87
7.2.110.0070.00716.57
7.2.100.0030.01016.89
7.2.90.0120.00616.97
7.2.80.0000.01216.63
7.2.70.0070.01016.91
7.2.60.0000.01316.91
7.2.50.0110.00616.77
7.2.40.0140.00316.91
7.2.30.0070.00716.82
7.2.20.0070.01116.84
7.2.10.0090.00916.81
7.2.00.0080.00618.05
7.1.330.0070.00815.59
7.1.320.0030.01015.71
7.1.310.0000.00815.72
7.1.300.0060.00915.78
7.1.290.0040.01115.67
7.1.280.0000.01415.75
7.1.270.0040.00415.68
7.1.260.0060.00615.75
7.1.250.0060.00916.00
7.1.100.0050.00518.09
7.1.70.0000.01117.14
7.1.60.0090.01219.31
7.1.50.0060.01616.86
7.1.00.0030.03322.43
7.0.200.0040.00416.88
7.0.140.0000.07322.13
7.0.120.0070.03322.05
7.0.60.0070.04320.02
7.0.50.0030.04017.72
7.0.40.0030.08720.05
7.0.30.0200.06320.09
7.0.20.0230.08720.21
7.0.10.0030.08720.05
7.0.00.0100.08020.16
5.6.280.0000.07720.86
5.6.210.0070.07720.57
5.6.200.0030.07018.12
5.6.190.0200.06320.61
5.6.180.0330.05720.61
5.6.170.0070.05020.47
5.6.160.0130.05020.56
5.6.150.0030.06318.16
5.6.140.0100.07718.21
5.6.130.0070.08318.14
5.6.120.0100.04720.93
5.6.110.0030.08320.98
5.6.100.0100.08721.13
5.6.90.0130.07321.10
5.6.80.0070.06020.54
5.5.350.0230.08020.41
5.5.340.0070.04017.97
5.5.330.0000.04320.29
5.5.320.0170.05320.27
5.5.310.0330.03720.27
5.5.300.0100.04318.02
5.5.290.0030.08318.06
5.5.280.0130.07320.87
5.5.270.0030.08320.87
5.5.260.0100.06320.73
5.5.250.0100.08320.57
5.5.240.0300.06020.19
5.4.450.0030.04319.27
5.4.440.0070.04019.57
5.4.430.0030.04719.56
5.4.420.0100.05319.17
5.4.410.0130.07019.04
5.4.400.0030.04719.15
5.4.390.0100.05719.15
5.4.380.0000.08719.08
5.4.370.0070.08019.17
5.4.360.0100.07319.24
5.4.350.0130.05319.16
5.4.340.0030.07019.16
5.4.320.0100.06319.14
5.4.310.0130.08019.25
5.4.300.0070.07718.84
5.4.290.0130.04718.92
5.4.280.0200.05718.98
5.4.270.0130.03019.23
5.4.260.0070.07018.87
5.4.250.0100.06319.08
5.4.240.0000.06019.16
5.4.230.0100.06019.11
5.4.220.0130.03719.00
5.4.210.0100.06019.21
5.4.200.0000.08019.23
5.4.190.0130.05718.91
5.4.180.0030.04019.04
5.4.170.0130.07018.84
5.4.160.0030.05719.23
5.4.150.0070.08318.90
5.4.140.0130.05316.27
5.4.130.0100.04016.42
5.4.120.0070.03316.50
5.4.110.0030.04316.47
5.4.100.0170.05716.43
5.4.90.0030.07716.41
5.4.80.0100.04016.42
5.4.70.0030.07016.28
5.4.60.0000.05316.39
5.4.50.0130.06716.52
5.4.40.0070.03316.27
5.4.30.0000.04016.34
5.4.20.0030.06316.25
5.4.10.0030.05716.27
5.4.00.0000.06315.80
5.3.290.0030.04014.67
5.3.280.0100.07314.61
5.3.270.0070.05314.49
5.3.260.0000.04714.62
5.3.250.0030.04014.60
5.3.240.0030.04314.66
5.3.230.0100.06714.68
5.3.220.0070.03714.55
5.3.210.0100.04714.61
5.3.200.0100.06314.57
5.3.190.0030.07014.59
5.3.180.0070.07314.64
5.3.170.0000.04314.72
5.3.160.0130.06714.51
5.3.150.0070.07014.70
5.3.140.0030.05714.57
5.3.130.0030.07714.71
5.3.120.0070.08014.62
5.3.110.0070.07714.46
5.3.100.0030.07014.13
5.3.90.0170.06014.07
5.3.80.0100.07014.07
5.3.70.0170.06314.04
5.3.60.0000.04714.02
5.3.50.0000.04013.89
5.3.40.0000.04014.00
5.3.30.0030.03313.90
5.3.20.0030.03313.73
5.3.10.0100.02713.73
5.3.00.0000.04013.71
5.2.170.0030.03011.22
5.2.160.0030.03311.11
5.2.150.0070.02711.11
5.2.140.0030.02711.07
5.2.130.0030.02711.11
5.2.120.0100.02011.12
5.2.110.0070.02311.11
5.2.100.0000.03011.24
5.2.90.0030.03011.11
5.2.80.0070.05011.12
5.2.70.0000.03011.09
5.2.60.0100.02711.20
5.2.50.0000.03010.98
5.2.40.0000.03010.95
5.2.30.0100.02010.92
5.2.20.0000.03311.03
5.2.10.0030.02710.88
5.2.00.0030.03010.68
5.1.60.0030.0239.90
5.1.50.0030.0239.95
5.1.40.0000.0279.99
5.1.30.0030.02310.37
5.1.20.0000.03010.23
5.1.10.0030.02710.02
5.1.00.0000.02710.04
5.0.50.0000.0208.61
5.0.40.0030.0178.41
5.0.30.0000.0308.27
5.0.20.0070.0138.17
5.0.10.0030.0178.21
5.0.00.0030.0278.13
4.4.90.0030.0137.64
4.4.80.0000.0137.64
4.4.70.0070.0137.64
4.4.60.0000.0177.64
4.4.50.0030.0137.64
4.4.40.0030.0207.64
4.4.30.0030.0137.64
4.4.20.0070.0107.64
4.4.10.0030.0137.64
4.4.00.0030.0237.64
4.3.110.0030.0137.64
4.3.100.0000.0137.64
4.3.90.0000.0137.64
4.3.80.0000.0237.64
4.3.70.0030.0107.64
4.3.60.0030.0107.64
4.3.50.0030.0137.64
4.3.40.0030.0207.64
4.3.30.0000.0137.64
4.3.20.0030.0137.64
4.3.10.0000.0137.64
4.3.00.0000.0137.64

preferences:
63.67 ms | 401 KiB | 5 Q