3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '{ "normal_size": [ { "id": 1, "image": "MICMIMC30651-6.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-6.jpg" }, { "id": 2, "image": "MICMIMC30651-61.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-61.jpg" }, { "id": 3, "image": "MICMIMC30651-62.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-62.jpg" }, { "id": 4, "image": "MICMIMC30651-63.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-63.jpg" } ] }'; $output = json_encode(['image' => json_decode($data, true)]); echo $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.4.130.0050.00420.32
8.4.120.0090.00120.55
8.4.110.0100.01222.40
8.4.100.0130.00917.46
8.4.90.0070.01418.48
8.4.80.0080.01117.78
8.4.70.0120.00418.00
8.4.60.0080.00919.03
8.4.50.0060.01020.50
8.4.40.0130.00619.51
8.4.30.0080.00020.45
8.4.20.0130.00618.80
8.4.10.0050.00317.81
8.3.260.0050.00616.54
8.3.250.0060.00518.66
8.3.240.0120.00716.39
8.3.230.0140.00716.63
8.3.220.0030.00717.15
8.3.210.0080.00416.63
8.3.200.0050.00416.44
8.3.190.0100.00818.80
8.3.180.0050.00316.36
8.3.170.0060.00318.74
8.3.160.0070.00318.41
8.3.150.0150.00420.75
8.3.140.0110.00718.44
8.3.130.0000.00816.48
8.3.120.0070.00719.01
8.3.110.0000.00920.94
8.3.100.0040.00716.48
8.3.90.0060.00918.25
8.3.80.0000.00918.20
8.3.70.0070.01116.63
8.3.60.0030.01716.63
8.3.50.0090.00921.98
8.3.40.0110.00418.61
8.3.30.0090.00918.85
8.3.20.0040.00421.79
8.3.10.0000.00822.15
8.3.00.0040.00423.56
8.2.290.0120.00620.68
8.2.280.0070.00318.73
8.2.270.0190.00017.01
8.2.260.0120.00418.51
8.2.250.0100.00016.61
8.2.240.0120.00617.37
8.2.230.0080.00022.58
8.2.220.0040.01124.06
8.2.210.0070.01126.77
8.2.200.0040.00416.48
8.2.190.0160.00316.88
8.2.180.0120.00316.75
8.2.170.0110.01122.96
8.2.160.0070.00720.53
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00019.95
8.2.110.0060.00321.04
8.2.100.0090.00317.91
8.2.90.0040.00419.41
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00818.14
8.2.30.0050.00318.18
8.2.20.0070.00018.00
8.2.10.0000.00719.38
8.2.00.0050.00618.20
8.1.330.0130.00622.16
8.1.320.0080.01016.31
8.1.310.0070.01018.23
8.1.300.0100.01018.46
8.1.290.0030.00618.88
8.1.280.0140.00325.92
8.1.270.0000.00922.06
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00317.83
8.1.230.0110.00020.78
8.1.220.0080.00017.76
8.1.210.0030.00718.77
8.1.200.0060.00317.10
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0080.00018.47
8.1.160.0050.00218.87
8.1.150.0000.00818.83
8.1.140.0050.00220.90
8.1.130.0000.00821.89
8.1.120.0000.00717.34
8.1.110.0040.00417.44
8.1.100.0110.00017.30
8.1.90.0000.00717.28
8.1.80.0040.00417.43
8.1.70.0070.00017.46
8.1.60.0040.00417.54
8.1.50.0060.00317.36
8.1.40.0090.00017.40
8.1.30.0030.00617.46
8.1.20.0040.00417.49
8.1.10.0040.00417.41
8.1.00.0020.00517.41
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0070.00018.40
8.0.270.0000.00717.27
8.0.260.0000.00720.08
8.0.250.0040.00416.88
8.0.240.0040.00416.95
8.0.230.0080.00016.90
8.0.220.0000.00616.77
8.0.210.0000.00716.79
8.0.200.0000.00616.83
8.0.190.0040.00416.94
8.0.180.0050.00216.71
8.0.170.0030.00516.84
8.0.160.0000.00716.90
8.0.150.0030.00316.79
8.0.140.0070.00016.83
8.0.130.0060.00013.28
8.0.120.0000.00716.81
8.0.110.0000.00716.91
8.0.100.0040.00416.81
8.0.90.0040.00416.88
8.0.80.0100.00516.88
8.0.70.0080.00016.79
8.0.60.0040.00416.75
8.0.50.0050.00216.70
8.0.30.0110.00817.09
8.0.20.0090.00816.91
8.0.10.0000.01617.00
8.0.00.0110.00816.82
7.4.330.0050.00015.55
7.4.320.0030.00316.56
7.4.300.0030.00316.47
7.4.290.0000.00816.55
7.4.280.0000.00816.46
7.4.270.0030.00316.53
7.4.260.0050.00013.25
7.4.250.0000.00716.32
7.4.240.0040.00416.46
7.4.230.0030.00316.55
7.4.220.0030.00516.47
7.4.210.0080.00616.56
7.4.200.0040.00416.29
7.4.160.0110.00416.52
7.4.150.0110.00516.46
7.4.140.0080.00816.35
7.4.130.0100.00816.52
7.4.120.0130.00616.44
7.4.110.0110.00816.45
7.4.100.0080.01016.37
7.4.90.0140.00716.54
7.4.80.0100.00817.50
7.4.70.0080.01116.37
7.4.60.0090.01016.46
7.4.50.0100.00616.50
7.4.40.0070.01116.44
7.4.30.0100.00916.44
7.4.20.0090.01016.37
7.4.10.0090.01116.33
7.4.00.0030.01515.93
7.3.330.0050.00216.22
7.3.320.0030.00313.06
7.3.310.0030.00316.14
7.3.300.0000.00716.13
7.3.290.0050.00216.16
7.3.280.0110.00616.22
7.3.270.0090.01116.21
7.3.260.0100.00816.30
7.3.250.0120.00316.25
7.3.240.0070.01216.28
7.3.230.0060.01016.35
7.3.220.0040.01516.26
7.3.210.0100.00716.38
7.3.200.0080.00916.39
7.3.190.0050.01316.26
7.3.180.0150.00216.29
7.3.170.0060.01116.27
7.3.160.0050.01316.34
7.3.150.0080.01016.27
7.3.140.0110.00616.25
7.3.130.0110.00716.29
7.3.120.0130.00916.39
7.3.110.0080.00816.13
7.3.100.0110.00816.14
7.3.90.0090.00916.45
7.3.80.0100.00916.22
7.3.70.0090.01015.81
7.3.60.0120.00915.78
7.3.50.0100.01115.76
7.3.40.0150.00715.84
7.3.30.0120.00615.76
7.3.20.0090.00816.37
7.3.10.0150.00716.48
7.3.00.0090.00916.40
7.2.340.0170.01316.31
7.2.330.0130.01016.45
7.2.320.0160.00816.43
7.2.310.0140.00916.49
7.2.300.0170.00616.54
7.2.290.0160.00716.44
7.2.280.0140.01016.53
7.2.270.0130.01316.41
7.2.260.0130.01316.59
7.2.250.0190.00616.34
7.2.240.0170.00816.28
7.2.230.0130.01116.37
7.2.220.0110.01316.32
7.2.210.0230.00916.44
7.2.200.0150.00716.00
7.2.190.0100.01216.02
7.2.180.0100.01015.91
7.2.170.0150.00515.95
7.2.160.0150.00715.99
7.2.150.0130.00916.47
7.2.140.0140.00716.66
7.2.130.0130.01016.78
7.2.120.0130.01016.50
7.2.110.0160.00816.70
7.2.100.0120.01116.67
7.2.90.0130.01016.67
7.2.80.0110.01216.50
7.2.70.0370.00416.55
7.2.60.0180.00616.70
7.2.50.0130.00916.68
7.2.40.0130.01116.76
7.2.30.0150.00916.68
7.2.20.0120.00916.59
7.2.10.0260.01116.72
7.2.00.0140.00716.70
7.1.330.0150.00915.67
7.1.320.0140.00915.58
7.1.310.0150.00715.58
7.1.300.0500.01015.58
7.1.290.0080.00915.57
7.1.280.0100.00915.53
7.1.270.0100.00815.53
7.1.260.0140.00915.67
7.1.250.0150.00415.54
7.1.240.0190.00915.61
7.1.230.0160.01015.53
7.1.220.0140.01215.51
7.1.210.0190.00615.55
7.1.200.0190.00515.44
7.1.190.0090.01315.56
7.1.180.0260.00415.49
7.1.170.0180.00515.44
7.1.160.0190.00615.47
7.1.150.0190.00915.51
7.1.140.0150.00715.55
7.1.130.0130.01015.53
7.1.120.0180.00815.47
7.1.110.0120.01215.51
7.1.100.0150.00815.43
7.1.90.0230.01115.49
7.1.80.0240.00515.52
7.1.70.0480.01415.56
7.1.60.0170.00515.47
7.1.50.0150.00815.57
7.1.40.0170.00715.59
7.1.30.0160.01115.53
7.1.20.0160.00815.54
7.1.10.0170.01015.48
7.1.00.0130.01215.44

preferences:
29 ms | 403 KiB | 5 Q