3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(Array ( 0 => "ISP2", 1 => "ISP3", 2 => "ISP4" ), Array ( 0 => "NAME-A", 1 => "NAME-B", 2 => "NAME-C" ), Array ( 0 => "property1", 1 => "property2", 2 => "property2" )); $result = array(); Foreach($arr[2] as $key => $prop){ $result[$prop]["charges"][] =$arr[0][$key]; $result[$prop]["names"][] = $arr[1][$key]; } Var_dump($result);

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.5.10.0090.01016.67
8.5.00.0150.00720.04
8.4.150.0060.00616.84
8.4.140.0110.01017.59
8.4.130.0120.00817.96
8.4.120.0090.00820.66
8.4.110.0100.01022.55
8.4.100.0130.00618.84
8.4.90.0110.00718.76
8.4.80.0130.00520.50
8.4.70.0060.00917.91
8.4.60.0120.00818.88
8.4.50.0120.00820.27
8.4.40.0070.00317.77
8.4.30.0060.01317.59
8.4.20.0190.00019.64
8.4.10.0060.00319.61
8.3.280.0100.01318.44
8.3.270.0110.00916.74
8.3.260.0130.00616.45
8.3.250.0120.00719.13
8.3.240.0080.00816.61
8.3.230.0100.00316.17
8.3.220.0090.00919.16
8.3.210.0120.00818.32
8.3.200.0050.00416.61
8.3.190.0050.00319.11
8.3.180.0070.00916.78
8.3.170.0140.00420.59
8.3.160.0070.00717.29
8.3.150.0190.00316.48
8.3.140.0040.00418.89
8.3.130.0090.00018.19
8.3.120.0040.00420.60
8.3.110.0060.00320.94
8.3.100.0170.00016.75
8.3.90.0090.00926.77
8.3.80.0090.00018.68
8.3.70.0100.01018.31
8.3.60.0090.00616.50
8.3.50.0120.00417.42
8.3.40.0110.00418.62
8.3.30.0040.01118.75
8.3.20.0080.00020.29
8.3.10.0080.00023.52
8.3.00.0040.00421.77
8.2.290.0110.00820.49
8.2.280.0090.00918.18
8.2.270.0090.00617.04
8.2.260.0060.00316.47
8.2.250.0130.00718.16
8.2.240.0090.00019.08
8.2.230.0030.00622.58
8.2.220.0060.00324.06
8.2.210.0000.00926.77
8.2.200.0000.00818.41
8.2.190.0150.00316.58
8.2.180.0040.01118.54
8.2.170.0040.01122.96
8.2.160.0090.00619.22
8.2.150.0040.01125.66
8.2.140.0060.00324.66
8.2.130.0050.00320.35
8.2.120.0050.00226.35
8.2.110.0200.00320.59
8.2.100.0080.00318.09
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.50
8.2.50.0000.00818.10
8.2.40.0040.00419.49
8.2.30.0030.00519.32
8.2.20.0050.00318.03
8.2.10.0040.00418.07
8.2.00.0000.00718.12
8.1.330.0150.00623.79
8.1.320.0110.00915.83
8.1.310.0090.00918.16
8.1.300.0060.00318.29
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0090.00023.80
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.85
8.1.230.0110.00020.88
8.1.220.0040.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00717.41
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0030.00518.96
8.1.150.0000.00720.15
8.1.140.0030.00519.00
8.1.130.0070.00018.92
8.1.120.0030.00717.40
8.1.110.0040.00417.50
8.1.100.0040.00417.46
8.1.90.0040.00417.42
8.1.80.0000.00717.32
8.1.70.0000.00717.49
8.1.60.0000.00817.59
8.1.50.0000.00817.46
8.1.40.0090.00017.46
8.1.30.0030.00517.63
8.1.20.0000.00717.61
8.1.10.0050.00317.45
8.1.00.0070.00017.38
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0080.00018.37
8.0.270.0030.00517.32
8.0.260.0040.00418.93
8.0.250.0030.00316.98
8.0.240.0070.00317.00
8.0.230.0000.00716.95
8.0.220.0000.00716.90
8.0.210.0040.00416.91
8.0.200.0000.00617.00
8.0.190.0000.00816.84
8.0.180.0020.00516.94
8.0.170.0040.00416.89
8.0.160.0000.00716.87
8.0.150.0040.00416.81
8.0.140.0050.00516.74
8.0.130.0030.00313.36
8.0.120.0000.00716.88
8.0.110.0040.00416.94
8.0.100.0000.00716.76
8.0.90.0040.00416.94
8.0.80.0120.00616.84
8.0.70.0050.00217.02
8.0.60.0000.00716.72
8.0.50.0030.00516.76
8.0.30.0150.00617.13
8.0.20.0110.00817.40
8.0.10.0000.00816.96
8.0.00.0070.01016.73
7.4.330.0030.00315.55
7.4.320.0060.00016.49
7.4.300.0030.00316.61
7.4.290.0030.00316.50
7.4.280.0000.00716.50
7.4.270.0060.00316.66
7.4.260.0070.00316.41
7.4.250.0080.00016.41
7.4.240.0000.00716.46
7.4.230.0040.00416.58
7.4.220.0110.01416.61
7.4.210.0070.01416.66
7.4.200.0030.00316.61
7.4.160.0150.00316.64
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0090.00916.58
7.4.120.0140.00516.52
7.4.110.0160.00016.38
7.4.100.0090.00916.59
7.4.90.0040.01516.48
7.4.80.0130.00319.39
7.4.70.0100.01416.60
7.4.60.0060.01216.67
7.4.50.0100.00716.32
7.4.40.0140.00416.28
7.4.30.0030.01316.48
7.4.00.0040.00415.19
7.3.330.0050.00013.20
7.3.320.0030.00313.14
7.3.310.0070.00016.21
7.3.300.0030.00316.29
7.3.290.0080.00716.32
7.3.280.0130.00916.26
7.3.270.0120.00817.40
7.3.260.0130.00816.44
7.3.250.0130.00916.41
7.3.240.0130.00516.38
7.3.230.0070.01116.45
7.3.210.0110.00616.54
7.3.200.0070.01016.51
7.3.190.0210.00016.42
7.3.180.0120.00416.52
7.3.170.0110.00716.27
7.3.160.0100.01016.58
7.2.330.0110.00816.55
7.2.320.0100.00816.53
7.2.310.0140.00316.77
7.2.300.0070.01016.59
7.2.290.0080.01116.77
7.2.60.0160.00616.75
7.2.50.0040.00816.83
7.1.200.0100.00315.86
7.1.110.0640.00716.15
7.1.100.0490.00916.13
7.1.90.0630.00916.32
7.1.80.0570.00716.09
7.1.70.0580.00715.28
7.1.60.0600.00632.86
7.1.50.0710.01932.69
7.1.40.0650.00332.34
7.1.30.0790.01032.84
7.1.20.0690.02632.77
7.1.10.0500.00714.84
7.1.00.0670.00014.89
7.0.250.0660.00716.13
7.0.240.0910.00615.76
7.0.230.0510.01315.92
7.0.220.0590.01015.65
7.0.210.0510.01014.64
7.0.200.0590.01414.84
7.0.190.1030.00714.75
7.0.180.0530.00814.63
7.0.170.0790.00314.55
7.0.160.0710.00614.55
7.0.150.0440.01014.39
7.0.140.0660.01314.53
7.0.130.1640.00714.46
7.0.120.0850.01314.86
7.0.110.0850.00714.36
7.0.100.1080.00714.51
7.0.90.0090.00914.41
7.0.80.0830.01314.45
7.0.70.1090.01714.16
7.0.60.1100.01014.15
7.0.50.0670.01614.46
7.0.40.0890.01414.70
7.0.30.0600.00714.70
7.0.20.0600.01014.67
7.0.10.0610.00314.54
7.0.00.0950.01114.83

preferences:
158.9 ms | 403 KiB | 5 Q