3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(0 => array('id' => "AMO"), 1 => array('id' => "PAT")); foreach($arr as $value) { $new_arr[$value['id']] = array(); } print_r($new_arr);

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.0110.00818.52
8.5.00.0120.01119.73
8.4.150.0010.00114.05
8.4.140.0140.00717.48
8.4.130.0100.00819.22
8.4.120.0150.00718.53
8.4.110.0210.00419.20
8.4.100.0170.00417.46
8.4.90.0150.00617.67
8.4.80.0160.00617.53
8.4.70.0150.00617.56
8.4.60.0160.00517.96
8.4.50.0150.00617.62
8.4.40.0170.00517.52
8.4.30.0170.00517.50
8.4.20.0160.00618.33
8.4.10.0150.00318.33
8.3.280.0140.00718.45
8.3.270.0120.00816.68
8.3.260.0160.00516.47
8.3.250.0150.00517.18
8.3.240.0150.00516.47
8.3.230.0140.00716.44
8.3.220.0120.00416.60
8.3.210.0140.00316.33
8.3.200.0140.00316.65
8.3.190.0130.00417.39
8.3.180.0160.00617.02
8.3.170.0190.00316.43
8.3.160.0170.00616.48
8.3.150.0170.00416.72
8.3.140.0120.00616.32
8.3.130.0130.00417.08
8.3.120.0140.00517.21
8.3.110.0140.00517.87
8.3.100.0140.00518.94
8.3.90.0170.00519.80
8.3.80.0130.00617.12
8.3.70.0160.00516.59
8.3.60.0180.00517.02
8.3.50.0130.00716.81
8.3.40.0140.00717.73
8.3.30.0150.00317.73
8.3.20.0080.00618.25
8.3.10.0110.00318.78
8.3.00.0100.00318.79
8.2.290.0120.00617.77
8.2.280.0110.00717.08
8.2.270.0110.00616.76
8.2.260.0100.00516.71
8.2.250.0130.00417.18
8.2.240.0130.00616.60
8.2.230.0120.00318.40
8.2.220.0120.00423.43
8.2.210.0100.00619.86
8.2.200.0140.00317.02
8.2.190.0150.00516.43
8.2.180.0130.00619.53
8.2.170.0140.00719.40
8.2.160.0160.00319.30
8.2.150.0120.00319.68
8.2.140.0090.00619.95
8.2.130.0120.00318.62
8.2.120.0130.00320.27
8.2.110.0140.00518.34
8.2.100.0120.00517.59
8.2.90.0100.00718.30
8.2.80.0100.00517.85
8.2.70.0100.00617.56
8.2.60.0120.00517.76
8.2.50.0120.00417.62
8.2.40.0110.00318.71
8.2.30.0110.00418.48
8.2.20.0100.00417.67
8.2.10.0110.00517.58
8.2.00.0100.00517.56
8.1.330.0140.00418.56
8.1.320.0140.00416.02
8.1.310.0110.00716.93
8.1.300.0110.00416.76
8.1.290.0110.00520.94
8.1.280.0130.00419.27
8.1.270.0140.00419.32
8.1.260.0110.00520.27
8.1.250.0100.00420.68
8.1.240.0120.00517.85
8.1.230.0110.00318.50
8.1.220.0090.00617.53
8.1.210.0090.00517.67
8.1.200.0130.00317.26
8.1.190.0100.00617.13
8.1.180.0120.00317.34
8.1.170.0100.00418.31
8.1.160.0100.00517.70
8.1.150.0100.00418.16
8.1.140.0110.00417.25
8.1.130.0100.00317.30
8.1.120.0110.00417.19
8.1.110.0100.00417.19
8.1.100.0090.00517.21
8.1.90.0100.00517.31
8.1.80.0070.00617.33
8.1.70.0090.00417.23
8.1.60.0100.00517.38
8.1.50.0100.00517.16
8.1.40.0100.00417.43
8.1.30.0080.00617.39
8.1.20.0110.00417.45
8.1.10.0100.00517.29
8.1.00.0080.00717.18
8.0.300.0140.00317.66
8.0.290.0090.00616.46
8.0.280.0090.00417.00
8.0.270.0110.00416.52
8.0.260.0100.00416.66
8.0.250.0090.00416.63
8.0.240.0120.00316.68
8.0.230.0080.00616.61
8.0.220.0080.00516.55
8.0.210.0100.00416.64
8.0.200.0090.00416.73
8.0.190.0090.00516.52
8.0.180.0110.00316.68
8.0.170.0080.00616.51
8.0.160.0130.00216.62
8.0.150.0110.00316.41
8.0.140.0100.00416.64
8.0.130.0100.00415.36
8.0.120.0100.00416.58
8.0.110.0110.00416.49
8.0.100.0100.00416.47
8.0.90.0100.00416.59
8.0.80.0140.00516.55
8.0.70.0090.00616.66
8.0.60.0100.00416.62
8.0.50.0090.00616.52
8.0.30.0120.00716.80
8.0.20.0120.00817.17
8.0.10.0100.00616.64
8.0.00.0130.00416.70
7.4.330.0100.00316.11
7.4.320.0120.00216.24
7.4.300.0090.00416.35
7.4.290.0090.00516.19
7.4.280.0110.00316.34
7.4.270.0120.00216.28
7.4.260.0110.00416.25
7.4.250.0100.00516.24
7.4.240.0080.00516.41
7.4.230.0090.00316.34
7.4.220.0110.00516.38
7.4.210.0080.00816.38
7.4.200.0100.00316.29
7.4.190.0130.00316.44
7.4.180.0120.00416.20
7.4.160.0120.00416.38
7.4.150.0120.00616.65
7.4.140.0130.00717.27
7.4.130.0110.00816.22
7.4.120.0100.00916.40
7.4.110.0140.00316.37
7.4.100.0120.00616.21
7.4.90.0120.00516.08
7.4.80.0130.00617.26
7.4.70.0140.00616.27
7.4.60.0080.00816.16
7.4.50.0120.00316.19
7.4.40.0110.00516.23
7.4.30.0130.00416.26
7.4.20.0140.00315.93
7.4.10.0110.00515.59
7.4.00.0110.00615.49
7.3.330.0090.00515.05
7.3.320.0080.00414.92
7.3.310.0110.00316.08
7.3.300.0090.00416.15
7.3.290.0100.00416.23
7.3.280.0100.00716.28
7.3.270.0100.00616.43
7.3.260.0110.00716.14
7.3.250.0110.00716.25
7.3.240.0090.00716.32
7.3.230.0090.00616.12
7.3.220.0140.00316.10
7.3.210.0120.00416.21
7.3.200.0110.00616.09
7.3.190.0120.00616.14
7.3.180.0160.00616.17
7.3.170.0140.00716.09
7.3.160.0140.00716.05
7.3.150.0140.00416.12
7.3.140.0130.00315.85
7.3.130.0100.00615.58
7.3.120.0150.00415.60
7.3.110.0100.00815.38
7.3.100.0120.00615.56
7.3.90.0140.00415.74
7.3.80.0110.00415.53
7.3.70.0110.00615.72
7.3.60.0120.00615.77
7.3.50.0120.00615.72
7.3.40.0140.00415.42
7.3.30.0130.00415.48
7.3.20.0150.00616.37
7.3.10.0110.00916.44
7.3.00.0110.00616.20
7.2.340.0240.00415.99
7.2.330.0150.00516.18
7.2.320.0130.00916.27
7.2.310.0130.00616.37
7.2.300.0130.00716.29
7.2.290.0170.00716.30
7.2.280.0200.00616.21
7.2.270.0200.00416.12
7.2.260.0120.00715.72
7.2.250.0110.00715.97
7.2.240.0120.00615.72
7.2.230.0180.00615.79
7.2.220.0150.00815.70
7.2.210.0120.00715.77
7.2.200.0140.00715.83
7.2.190.0150.00615.75
7.2.180.0130.00915.83
7.2.170.0140.00615.67
7.2.160.0140.00415.67
7.2.150.0140.00516.45
7.2.140.0160.00416.56
7.2.130.0110.00616.74
7.2.120.0130.00616.51
7.2.110.0130.00916.60
7.2.100.0130.00716.64
7.2.90.0150.00816.67
7.2.80.0140.00816.64
7.2.70.0130.00516.60
7.2.60.0100.00516.78
7.2.50.0130.00616.65
7.2.40.0120.00516.65
7.2.30.0290.00416.53
7.2.20.0200.00516.54
7.2.10.0110.00616.56
7.2.00.0130.00416.61
7.1.330.0120.00515.30
7.1.320.0080.00715.40
7.1.310.0100.00415.43
7.1.300.0120.00315.47
7.1.290.0110.00315.38
7.1.280.0100.00415.48
7.1.270.0110.00515.59
7.1.260.0110.00715.40
7.1.250.0130.00415.47
7.1.240.0090.00615.42
7.1.230.0110.00515.54
7.1.220.0090.00515.33
7.1.210.0120.00615.29
7.1.200.0110.00615.46
7.1.190.0120.00515.31
7.1.180.0110.00615.32
7.1.170.0100.00715.38
7.1.160.0080.00715.37
7.1.150.0180.00415.35
7.1.140.0170.00615.33
7.1.130.0110.00315.39
7.1.120.0100.00415.54
7.1.110.0080.00715.52
7.1.100.0090.00615.93
7.1.90.0080.00715.93
7.1.80.0110.00515.93
7.1.70.0080.00615.77
7.1.60.0130.00419.47
7.1.50.0100.00819.39
7.1.40.0110.00719.28
7.1.30.0120.00519.27
7.1.20.0120.00419.25
7.1.10.0090.00815.66
7.1.00.0100.00415.71
7.0.330.0130.00714.80
7.0.320.0140.00515.06
7.0.310.0160.00414.93
7.0.300.0140.00314.92
7.0.290.0130.00315.05
7.0.280.0130.00615.12
7.0.270.0180.00714.99
7.0.260.0280.00614.89
7.0.250.0140.00415.08
7.0.240.0130.00415.81
7.0.230.0150.00315.79
7.0.220.0130.00515.74
7.0.210.0100.00815.52
7.0.200.0110.00515.57
7.0.190.0070.01015.38
7.0.180.0110.00615.51
7.0.170.0120.00615.40
7.0.160.0080.00715.22
7.0.150.0120.00615.46
7.0.140.0090.00715.25
7.0.130.0100.00815.31
7.0.120.0100.00615.43
7.0.110.0090.00615.18
7.0.100.0110.00315.28
7.0.90.0100.00515.38
7.0.80.0080.00615.35
7.0.70.0100.00515.23
7.0.60.0090.00615.24
7.0.50.0160.00515.27
7.0.40.0180.00515.43
7.0.30.0090.00715.49
7.0.20.0110.00615.39
7.0.10.0100.00615.36
7.0.00.0080.00815.36
5.6.400.0090.00415.19
5.6.390.0110.00615.12
5.6.380.0140.00515.04
5.6.370.0110.00615.03
5.6.360.0110.00415.06
5.6.350.0120.00615.14
5.6.340.0120.00615.02
5.6.330.0120.00715.27
5.6.320.0120.00315.02
5.6.310.0140.00415.23
5.6.300.0130.01716.44
5.6.290.0100.01916.65
5.6.280.0140.01816.60
5.6.270.0110.01816.61
5.6.260.0110.02016.54
5.6.250.0100.02016.51
5.6.240.0110.02116.63
5.6.230.0100.02016.77
5.6.220.0090.02116.66
5.6.210.0170.01416.74
5.6.200.0140.02016.82
5.6.190.0140.02016.72
5.6.180.0170.01516.70
5.6.170.0110.02116.71
5.6.160.0150.01716.79
5.6.150.0110.01916.73
5.6.140.0080.02116.73
5.6.130.0100.01816.80
5.6.120.0140.01716.71
5.6.110.0110.01916.73
5.6.100.0140.01716.64
5.6.90.0100.02116.60
5.6.80.0130.01616.31
5.6.70.0120.01916.43
5.6.60.0140.01816.45
5.6.50.0120.02216.57
5.6.40.0120.01716.37
5.6.30.0140.01616.46
5.6.20.0150.01616.44
5.6.10.0120.01716.52
5.6.00.0080.01916.42

preferences:
41.02 ms | 403 KiB | 5 Q