3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '[ { "id": 1, "content": "Reason 1" }, { "id": 2, "content": "Reason 2" }, { "id": 3, "content": "Reason 3" }, { "id": 4, "content": "Reason 4" } ]'; $from = json_decode($content, true); $to = json_encode(array_column($from, 'content', 'id'), JSON_PRETTY_PRINT); echo $to;

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.0130.00718.81
8.4.120.0100.01023.99
8.4.110.0120.00818.75
8.4.100.0110.00817.42
8.4.90.0140.00620.62
8.4.80.0020.00719.41
8.4.70.0090.00517.96
8.4.60.0130.00817.63
8.4.50.0120.00819.35
8.4.40.0160.00317.76
8.4.30.0140.00718.91
8.4.20.0100.01019.74
8.4.10.0030.00620.75
8.3.260.0070.00316.53
8.3.250.0100.00818.88
8.3.240.0120.00716.57
8.3.230.0140.00516.39
8.3.220.0070.00516.82
8.3.210.0140.00516.41
8.3.200.0110.00916.48
8.3.190.0010.00718.81
8.3.180.0120.00616.48
8.3.170.0060.01316.83
8.3.160.0120.00618.78
8.3.150.0140.00316.91
8.3.140.0080.00016.44
8.3.130.0040.00416.46
8.3.120.0090.00020.49
8.3.110.0030.00616.50
8.3.100.0040.00424.06
8.3.90.0110.00426.77
8.3.80.0060.00319.36
8.3.70.0120.00916.58
8.3.60.0100.01018.31
8.3.50.0100.00723.60
8.3.40.0040.01121.90
8.3.30.0110.00418.51
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0130.00116.38
8.2.280.0140.00618.33
8.2.270.0090.00916.48
8.2.260.0000.00816.91
8.2.250.0060.00316.60
8.2.240.0030.00617.25
8.2.230.0040.00420.94
8.2.220.0110.00037.54
8.2.210.0050.00226.77
8.2.200.0060.00318.16
8.2.190.0060.01016.88
8.2.180.0170.00325.92
8.2.170.0110.01118.97
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0130.00021.19
8.2.110.0060.00320.60
8.2.100.0040.00817.91
8.2.90.0090.00017.75
8.2.80.0000.00818.79
8.2.70.0070.00417.63
8.2.60.0050.00317.93
8.2.50.0030.00618.05
8.2.40.0050.00319.94
8.2.30.0060.00318.06
8.2.20.0080.00017.94
8.2.10.0040.00421.12
8.2.00.0030.00519.30
8.1.330.0100.00915.97
8.1.320.0120.00816.34
8.1.310.0090.00916.89
8.1.300.0060.00318.10
8.1.290.0060.00618.88
8.1.280.0100.00725.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0000.01020.70
8.1.230.0080.00317.83
8.1.220.0030.00617.77
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0060.00318.96
8.1.160.0070.00018.79
8.1.150.0050.00218.86
8.1.140.0050.00218.81
8.1.130.0030.00320.09
8.1.120.0070.00017.31
8.1.110.0030.00517.41
8.1.100.0040.00417.29
8.1.90.0080.00017.41
8.1.80.0040.00417.26
8.1.70.0000.00717.37
8.1.60.0040.00417.55
8.1.50.0050.00317.52
8.1.40.0040.00417.43
8.1.30.0040.00417.61
8.1.20.0040.00417.60
8.1.10.0040.00417.48
8.1.00.0030.00517.42
8.0.300.0020.00518.77
8.0.290.0030.00616.75
8.0.280.0000.00718.45
8.0.270.0030.00318.00
8.0.260.0000.00820.24
8.0.250.0070.00016.96
8.0.240.0060.00016.80
8.0.230.0000.00716.76
8.0.220.0000.00916.88
8.0.210.0080.00016.80
8.0.200.0000.00716.79
8.0.190.0030.00516.96
8.0.180.0000.00716.86
8.0.170.0040.00416.89
8.0.160.0040.00416.80
8.0.150.0070.00016.66
8.0.140.0040.00416.79
8.0.130.0050.00313.23
8.0.120.0000.00716.71
8.0.110.0030.00616.65
8.0.100.0040.00416.85
8.0.90.0000.00716.63
8.0.80.0050.01116.79
8.0.70.0000.00716.63
8.0.60.0050.00216.66
8.0.50.0080.00016.71
8.0.30.0110.01117.14
8.0.20.0140.00717.17
8.0.10.0050.00216.77
8.0.00.0170.00316.68
7.4.330.0000.00615.55
7.4.320.0000.00716.43
7.4.300.0070.00016.47
7.4.290.0040.00416.39
7.4.280.0060.00316.47
7.4.270.0050.00216.44
7.4.260.0030.00313.22
7.4.250.0030.00316.40
7.4.240.0030.00316.55
7.4.230.0070.00016.43
7.4.220.0000.00716.38
7.4.210.0070.00916.46
7.4.200.0030.00416.64
7.4.130.0110.01116.37
7.4.120.0100.01416.56
7.4.110.0090.01116.45
7.4.100.0100.00716.46
7.4.90.0100.00716.42
7.4.80.0110.00816.47
7.4.70.0120.00816.49
7.4.60.0130.00316.42
7.4.50.0090.00816.46
7.4.40.0120.00516.45
7.4.30.0070.00916.48
7.4.20.0070.00916.29
7.4.10.0110.00616.43
7.4.00.0120.00616.27
7.3.330.0030.00316.31
7.3.320.0050.00012.89
7.3.310.0000.00716.18
7.3.300.0060.00016.09
7.3.290.0070.01016.21
7.3.260.0100.00716.19
7.3.230.0120.01116.27
7.3.220.0140.00316.46
7.3.210.0100.00716.30
7.3.200.0110.00616.20
7.3.190.0090.00916.42
7.3.180.0070.00916.30
7.3.170.0070.00916.22
7.3.160.0060.01116.22
7.3.150.0080.00816.48
7.3.140.0070.00916.35
7.3.130.0110.00516.24
7.3.120.0120.00716.20
7.3.110.0070.00916.21
7.3.100.0100.00616.55
7.3.90.0080.00816.27
7.3.80.0090.00916.31
7.3.70.0110.00616.29
7.3.60.0090.00716.28
7.3.50.0090.00816.34
7.3.40.0110.00516.25
7.3.30.0080.00816.24
7.3.20.0070.00916.21
7.3.10.0150.00516.34
7.3.00.0190.00316.24
7.2.340.0160.00316.40
7.2.330.0140.00316.53
7.2.320.0090.01216.61
7.2.310.0120.00516.47
7.2.300.0100.00716.51
7.2.290.0080.00916.50
7.2.280.0130.00316.46
7.2.270.0130.00316.37
7.2.260.0120.00716.44
7.2.250.0140.00316.52
7.2.240.0060.01016.34
7.2.230.0070.01016.58
7.2.220.0100.00616.43
7.2.210.0130.00316.60
7.2.200.0060.01016.35
7.2.190.0110.00616.31
7.2.180.0090.00816.51
7.2.170.0090.01016.49
7.2.160.0030.01316.54
7.2.150.0110.00616.52
7.2.140.0100.00916.52
7.2.130.0080.00916.52
7.2.120.0090.01116.51
7.2.110.0110.00716.47
7.2.100.0320.00716.38
7.2.90.0120.00916.50
7.2.80.0090.01416.49
7.2.70.0080.01116.47
7.2.60.0120.00616.57
7.2.50.0350.00816.49
7.2.40.0090.00916.57
7.2.30.0090.01016.54
7.2.20.0060.01316.56
7.2.10.0110.00716.56
7.2.00.0140.00716.61

preferences:
29.75 ms | 403 KiB | 5 Q