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.70.0070.01416.58
8.3.60.0150.00418.55
8.3.50.0150.00917.46
8.3.40.0070.00718.71
8.3.30.0140.00318.79
8.3.20.0040.00418.73
8.3.10.0050.00320.48
8.3.00.0050.00317.46
8.2.180.0150.00318.41
8.2.170.0110.00422.96
8.2.160.0080.01220.43
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00419.64
8.2.110.0070.00321.03
8.2.100.0090.00317.84
8.2.90.0030.00619.08
8.2.80.0080.00017.97
8.2.70.0030.00617.71
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0000.00820.07
8.2.30.0000.00718.07
8.2.20.0000.00817.66
8.2.10.0060.00317.86
8.2.00.0040.00417.68
8.1.280.0090.01225.92
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00922.61
8.1.230.0040.00920.93
8.1.220.0040.00418.77
8.1.210.0080.00018.94
8.1.200.0000.00917.25
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0050.00318.79
8.1.160.0070.00019.00
8.1.150.0040.00418.66
8.1.140.0040.00417.44
8.1.130.0070.00017.87
8.1.120.0040.00417.41
8.1.110.0040.00417.34
8.1.100.0000.00717.36
8.1.90.0050.00217.42
8.1.80.0050.00317.36
8.1.70.0000.00817.46
8.1.60.0000.00817.57
8.1.50.0000.00817.42
8.1.40.0080.00017.41
8.1.30.0070.00017.47
8.1.20.0030.00617.63
8.1.10.0030.00617.50
8.1.00.0000.00817.42
8.0.300.0000.00719.98
8.0.290.0080.00016.63
8.0.280.0000.00718.32
8.0.270.0070.00017.17
8.0.260.0030.00316.89
8.0.250.0080.00017.07
8.0.240.0050.00517.05
8.0.230.0070.00017.03
8.0.220.0070.00016.94
8.0.210.0040.00416.86
8.0.200.0060.00016.98
8.0.190.0070.00017.01
8.0.180.0000.00716.99
8.0.170.0060.00316.88
8.0.160.0030.00317.09
8.0.150.0040.00416.79
8.0.140.0000.00716.88
8.0.130.0030.00313.36
8.0.120.0000.00816.80
8.0.110.0050.00317.02
8.0.100.0040.00416.97
8.0.90.0070.00016.99
8.0.80.0130.00616.97
8.0.70.0000.00816.96
8.0.60.0000.00716.95
8.0.50.0040.00416.96
8.0.30.0120.00717.23
8.0.20.0130.00817.04
8.0.10.0040.00416.95
8.0.00.0080.01016.70
7.4.330.0030.00313.05
7.4.320.0000.00616.41
7.4.300.0030.00316.63
7.4.290.0070.00016.62
7.4.280.0090.00016.61
7.4.270.0000.00716.48
7.4.260.0000.00613.26
7.4.250.0000.00716.58
7.4.240.0070.00016.45
7.4.230.0000.00716.69
7.4.220.0030.01416.56
7.4.210.0050.01316.60
7.4.200.0000.00816.67
7.4.190.0080.00016.46
7.4.160.0140.00716.40
7.4.150.0080.00816.65
7.4.140.0070.01816.57
7.4.130.0110.00816.58
7.4.120.0070.01016.54
7.4.110.0140.01016.57
7.4.100.0090.00816.56
7.4.90.0100.00716.55
7.4.80.0090.00919.39
7.4.70.0080.00816.52
7.4.60.0090.00916.63
7.4.50.0040.00416.37
7.4.40.0030.00916.55
7.4.30.0050.01116.43
7.4.00.0070.01014.82
7.3.330.0060.00013.27
7.3.320.0030.00313.44
7.3.310.0000.00716.43
7.3.300.0070.00016.45
7.3.290.0120.00616.44
7.3.280.0060.00916.43
7.3.270.0130.00316.25
7.3.260.0090.01116.33
7.3.250.0100.00716.55
7.3.240.0050.01116.40
7.3.230.0100.01016.41
7.3.210.0060.01116.44
7.3.200.0070.01016.43
7.3.190.0090.00916.63
7.3.180.0060.00916.34
7.3.170.0060.01216.55
7.3.160.0030.01816.32
7.3.120.0040.00414.81
7.2.330.0130.00416.29
7.2.320.0080.01216.25
7.2.310.0090.00916.29
7.2.300.0100.00716.31
7.2.290.0100.00716.45
7.2.00.0040.00819.52
7.1.100.0030.00618.38
7.1.70.0000.00817.22
7.1.60.0180.00719.40
7.1.50.0040.01816.73
7.1.00.0030.05722.43
7.0.200.0030.00716.40
7.0.140.0030.07022.09
7.0.120.0000.03721.96
7.0.60.0100.08319.89
7.0.50.0100.06317.86
7.0.40.0130.08020.27
7.0.30.0500.03720.34
7.0.20.0170.04720.09
7.0.10.0270.06320.12
7.0.00.0170.03020.25
5.6.280.0030.07320.99
5.6.210.0100.07720.71
5.6.200.0100.07718.25
5.6.190.0070.08720.57
5.6.180.0100.07020.46
5.6.170.0300.07020.47
5.6.160.0070.08320.54
5.6.150.0030.03718.19
5.6.140.0070.04018.15
5.6.130.0100.08318.23
5.6.120.0100.06021.02
5.6.110.0100.08320.98
5.6.100.0070.08320.95
5.6.90.0030.04321.11
5.6.80.0030.06720.39
5.6.70.4300.05020.48
5.5.350.0200.08020.43
5.5.340.0100.03317.98
5.5.330.0070.04020.30
5.5.320.0470.06720.14
5.5.310.0170.05020.14
5.5.300.0100.07717.98
5.5.290.0030.04017.95
5.5.280.0070.08720.77
5.5.270.0100.05720.85
5.5.260.0130.07320.95
5.5.250.0070.08020.70
5.5.240.0030.08320.13
5.4.450.0230.04019.54
5.4.440.3670.05019.28
5.4.430.0030.06019.52
5.4.420.0130.05019.21
5.4.410.0130.05019.44
5.4.400.0100.05319.12
5.4.390.0070.05719.16
5.4.380.0170.05318.72
5.4.370.0070.05318.42
5.4.360.0070.04718.72
5.4.350.0050.04012.02
5.4.340.0090.04112.02
5.4.320.0040.03912.50
5.4.310.0080.03612.50
5.4.300.0080.03712.50
5.4.290.0070.04012.50
5.4.280.0050.03812.40
5.4.270.0060.03912.40
5.4.260.0080.04212.40
5.4.250.0060.04012.40
5.4.240.0040.04212.40
5.4.230.0080.03912.39
5.4.220.0070.03912.39
5.4.210.0090.03712.39
5.4.200.0070.04212.39
5.4.190.0070.04012.39
5.4.180.0080.04112.38
5.4.170.0070.04212.40
5.4.160.0070.04112.39
5.4.150.0070.04412.38
5.4.140.0090.04512.07
5.4.130.0090.04212.06
5.4.120.0080.04512.02
5.4.110.0070.04012.01
5.4.100.0090.04112.01
5.4.90.0100.04212.01
5.4.80.0110.04312.01
5.4.70.0100.04112.01
5.4.60.0110.04012.01
5.4.50.0090.04012.01
5.4.40.0080.03812.00
5.4.30.0070.03911.99
5.4.20.0100.04212.00
5.4.10.0050.04311.99
5.4.00.0080.04011.48
5.3.290.0080.03912.80
5.3.280.0100.04712.71
5.3.270.0090.04912.73
5.3.260.0070.04712.72
5.3.250.0070.04212.72
5.3.240.0070.04312.72
5.3.230.0080.04212.71
5.3.220.0090.04612.68
5.3.210.0100.04512.68
5.3.200.0080.04312.68
5.3.190.0070.04112.68
5.3.180.0070.03912.67
5.3.170.0060.03812.67
5.3.160.0080.03612.67
5.3.150.0080.04112.67
5.3.140.0090.04012.66
5.3.130.0060.04312.66
5.3.120.0070.04312.66
5.3.110.0090.04812.66
5.3.100.0080.03812.12
5.3.90.0060.04112.10
5.3.80.0060.04012.09
5.3.70.0080.04112.09
5.3.60.0080.04212.07
5.3.50.0080.04912.02
5.3.40.0090.04612.02
5.3.30.0080.04311.98

preferences:
53.45 ms | 401 KiB | 5 Q