3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json = '[{"id":"331","file_name":"3b1379e2496408dd4c865f5f63f96bf6","file_path":"https://path/3b1379e2496408dd4c865f5f63f96bf6.png"}, {"id":"332","file_name":"d0ef559473a061086592bceed0880a01","file_path":"https://path/d0ef559473a061086592bceed0880a01.png"}]'; $arr = json_decode($json, true); $output = []; foreach ($arr as $item) { $output[] = ["url" => $item["file_path"]]; } echo json_encode($output);

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.30.0110.00719.53
8.5.20.0080.00919.69
8.5.10.0030.00420.12
8.5.00.0130.00920.02
8.4.180.0090.01219.74
8.4.170.0120.00922.07
8.4.160.0130.00823.86
8.4.150.0090.00416.92
8.4.140.0120.00917.38
8.4.130.0090.00819.45
8.4.120.0110.00924.23
8.4.110.0110.00722.42
8.4.100.0120.00817.69
8.4.90.0090.01217.74
8.4.80.0090.01117.98
8.4.70.0140.00717.79
8.4.60.0140.00317.72
8.4.50.0120.00517.73
8.4.40.0090.01219.46
8.4.30.0030.00718.77
8.4.20.0040.01525.90
8.4.10.0060.00323.63
8.3.300.0120.00722.56
8.3.290.0110.01020.81
8.3.280.0060.00418.43
8.3.270.0040.00316.92
8.3.260.0100.01016.67
8.3.250.0110.00718.80
8.3.240.0080.01017.25
8.3.230.0080.00816.44
8.3.220.0070.00317.41
8.3.210.0050.00216.59
8.3.200.0140.00616.63
8.3.190.0110.00816.41
8.3.180.0110.00816.40
8.3.170.0090.00919.12
8.3.160.0100.01016.81
8.3.150.0080.01217.15
8.3.140.0040.00418.99
8.3.130.0060.00316.59
8.3.120.0070.00418.90
8.3.110.0060.00320.94
8.3.100.0000.00918.31
8.3.90.0090.00626.77
8.3.80.0030.00618.31
8.3.70.0110.00718.52
8.3.60.0100.00618.31
8.3.50.0140.00716.54
8.3.40.0080.01120.47
8.3.30.0000.01418.60
8.3.20.0080.00024.18
8.3.10.0030.00624.66
8.3.00.0060.00326.16
8.2.300.0110.00918.79
8.2.290.0140.00520.32
8.2.280.0070.00319.96
8.2.270.0120.00617.16
8.2.260.0060.00317.34
8.2.250.0120.00316.48
8.2.240.0160.00318.99
8.2.230.0050.00322.58
8.2.220.0030.00524.06
8.2.210.0050.00326.77
8.2.200.0090.00016.38
8.2.190.0090.01216.60
8.2.180.0120.00616.38
8.2.170.0110.00718.87
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00320.41
8.2.100.0060.00617.91
8.2.90.0000.00918.03
8.2.80.0000.00819.23
8.2.70.0050.00317.63
8.2.60.0040.00419.60
8.2.50.0060.00318.07
8.2.40.0000.00918.16
8.2.30.0030.00617.98
8.2.20.0000.00719.37
8.2.10.0140.00317.71
8.2.00.0050.00717.64
8.1.340.0100.01320.03
8.1.330.0110.00722.05
8.1.320.0100.00915.91
8.1.310.0070.00716.93
8.1.300.0060.00319.78
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.07
8.1.230.0110.00022.12
8.1.220.0060.00317.74
8.1.210.0040.00418.95
8.1.200.0040.00717.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.94
8.1.160.0030.00518.89
8.1.150.0040.00418.54
8.1.140.0110.00017.30
8.1.130.0030.00817.44
8.1.120.0070.00717.62
8.1.110.0100.00617.36
8.1.100.0080.00817.38
8.1.90.0050.01117.56
8.1.80.0040.01317.51
8.1.70.0190.00017.42
8.1.60.0150.00817.57
8.1.50.0120.00717.54
8.1.40.0140.00517.68
8.1.30.0130.01017.65
8.1.20.0120.00917.61
8.1.10.0150.00317.56
8.1.00.0120.00917.49
8.0.300.0070.00019.98
8.0.290.0050.00216.63
8.0.280.0080.00018.37
8.0.270.0070.00716.81
8.0.260.0150.00016.85
8.0.250.0110.00416.80
8.0.240.0100.00516.94
8.0.230.0090.00316.89
8.0.220.0110.00416.68
8.0.210.0080.00816.74
8.0.200.0070.00716.91
8.0.190.0040.00816.78
8.0.180.0090.00516.73
8.0.170.0130.00616.86
8.0.160.0170.00016.90
8.0.150.0120.00416.87
8.0.140.0050.01116.87
8.0.130.0130.00316.72
8.0.120.0060.00616.70
8.0.110.0130.00016.85
8.0.100.0080.00816.81
8.0.90.0130.00416.74
8.0.80.0110.00716.82
8.0.70.0090.00316.75
8.0.60.0120.00416.84
8.0.50.0050.00716.70
8.0.30.0000.01016.77
8.0.20.0050.00916.89
8.0.10.0000.01116.92

preferences:
43.95 ms | 1115 KiB | 5 Q