3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "ver":1, "inputs":[ { "sequence":4294967295, "witness":"", "prev_out":{ "spent":true, "tx_index":372805487, "type":0, "addr":"3AFgA1pHKrk4jFHwzUL1CKgZvXyFSWZfgD", "value":12712, "n":0, "script":"a9145dee3b52c0c363fd962c57f33f346c453dba7e5687" }, "script":"00483045022100a3edd460e3aa186f4b318930d80ca97cb25d5e741896cf0a396151c0b0e39953022012f0bad5edea4aca199e19c68859e3f04a4dc7bedd5ceecfdba652707490e1bf0147304402206b86cf8f21dc79d85a1ba341416cabf98b1c837fa3468c5cec4ad0d2f707fe2f02205da8b6ffe1ec67bf703a4f1a45394c4f9ac7c14db2216d937025fdcb0dfe007501475221031131d02767e849cc0a03d067569b77a3b0b28797d1fecacfeaee6fa35a0634f221034b79ba896e312200d17e6a0e11266247522e48a6900a035231aca2c596dcc20e52ae" } ], "weight":1212, "block_height":543349, "relayed_by":"0.0.0.0", "out":[ { "spent":false, "tx_index":377146538, "type":0, "addr":"13Zggf2Jc8K6e2hZ9fTP8ymzVyaYQWhRBR", "value":5443, "n":0, "script":"76a9141c1eb04aeb07c5a80fff5d7ab6382f6550dccd3188ac" } ], "lock_time":0, "size":303, "double_spend":false, "time":1538084433, "tx_index":377146538, "vin_sz":1, "hash":"249256b255e9850fbf9abcbc73f8c872be2b51d3a055b66680bc7150f5bc1d1e", "vout_sz":1 }'; $arr = json_decode($json, true); // you can use $arr direct as json hierarchy //or convert to one-dimensional array $result = []; array_walk_recursive($arr, function ($item, $key) use (&$result){ $result[$key] = $item; }); print_r($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.4.130.0110.00917.77
8.4.120.0130.00822.19
8.4.110.0050.00420.54
8.4.100.0080.01418.76
8.4.90.0020.00818.99
8.4.80.0110.00817.82
8.4.70.0090.00819.23
8.4.60.0090.01118.96
8.4.50.0100.00718.69
8.4.40.0060.00319.50
8.4.30.0100.01017.73
8.4.20.0060.01320.57
8.4.10.0040.00417.84
8.3.260.0130.00616.67
8.3.250.0100.00918.72
8.3.240.0120.00616.64
8.3.230.0120.00716.48
8.3.220.0100.00818.73
8.3.210.0090.01016.75
8.3.200.0050.00416.65
8.3.190.0110.00816.85
8.3.180.0110.00817.18
8.3.170.0150.00318.81
8.3.160.0040.00416.77
8.3.150.0160.00318.96
8.3.140.0060.00316.87
8.3.130.0070.00318.50
8.3.120.0080.00018.84
8.3.110.0050.00516.62
8.3.100.0070.01324.06
8.3.90.0140.00026.77
8.3.80.0060.00316.63
8.3.70.0110.00416.75
8.3.60.0140.00718.30
8.3.50.0120.00318.08
8.3.40.0070.00718.97
8.3.30.0150.00018.80
8.3.20.0080.00018.71
8.3.10.0000.00721.85
8.3.00.0040.00423.36
8.2.290.0130.00520.67
8.2.280.0120.00718.43
8.2.270.0090.00917.28
8.2.260.0080.00816.86
8.2.250.0110.00718.50
8.2.240.0100.00016.93
8.2.230.0060.00320.94
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00316.63
8.2.190.0150.00016.88
8.2.180.0080.00816.75
8.2.170.0120.00922.96
8.2.160.0070.00721.87
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00420.98
8.2.110.0040.00422.10
8.2.100.0060.00617.91
8.2.90.0000.00817.91
8.2.80.0040.00419.14
8.2.70.0030.00518.05
8.2.60.0030.00518.03
8.2.50.0050.00318.10
8.2.40.0050.00321.05
8.2.30.0040.00420.61
8.2.20.0030.00518.24
8.2.10.0000.00718.15
8.2.00.0030.00518.35
8.1.330.0110.00821.67
8.1.320.0090.00917.79
8.1.310.0040.00418.51
8.1.300.0120.00318.34
8.1.290.0040.00418.88
8.1.280.0090.00925.92
8.1.270.0040.00420.45
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0050.00322.02
8.1.230.0090.00320.89
8.1.220.0060.00317.76
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0050.00317.48
8.1.180.0080.00018.10
8.1.170.0030.00518.77
8.1.160.0000.00718.99
8.1.150.0000.00718.95
8.1.140.0000.00720.68
8.1.130.0000.00720.32
8.1.120.0030.00317.40
8.1.110.0070.00017.48
8.1.100.0000.00817.50
8.1.90.0000.00717.56
8.1.80.0000.00817.42
8.1.70.0000.00817.48
8.1.60.0060.00617.52
8.1.50.0030.00517.62
8.1.40.0000.00817.50
8.1.30.0080.00017.62
8.1.20.0050.00217.67
8.1.10.0060.00317.61
8.1.00.0000.00817.46
8.0.300.0080.00020.16
8.0.290.0050.00216.88
8.0.280.0030.00318.41
8.0.270.0070.00017.35
8.0.260.0040.00418.41
8.0.250.0000.00717.02
8.0.240.0000.00717.00
8.0.230.0000.00717.01
8.0.220.0000.01016.89
8.0.210.0040.00416.95
8.0.200.0030.00316.98
8.0.190.0030.00716.95
8.0.180.0000.00716.89
8.0.170.0030.00516.99
8.0.160.0070.00016.97
8.0.150.0040.00416.89
8.0.140.0000.00716.91
8.0.130.0000.00813.34
8.0.120.0080.00016.88
8.0.110.0000.00716.99
8.0.100.0000.00716.82
8.0.90.0000.00816.90
8.0.80.0070.01016.87
8.0.70.0000.00716.77
8.0.60.0050.00316.83
8.0.50.0020.00516.75
8.0.30.0100.01117.22
8.0.20.0120.00917.40
8.0.10.0040.00416.91
8.0.00.0130.01016.82
7.4.330.0050.00015.55
7.4.320.0000.00616.55
7.4.300.0060.00016.59
7.4.290.0070.00016.47
7.4.280.0000.00816.57
7.4.270.0070.00016.66
7.4.260.0030.00716.66
7.4.250.0040.00416.63
7.4.240.0000.00716.70
7.4.230.0070.00016.68
7.4.220.0040.00416.53
7.4.210.0060.01116.59
7.4.200.0000.00716.75
7.4.160.0100.00916.65
7.4.140.0110.00917.86
7.4.130.0070.01016.42
7.4.120.0100.00816.57
7.4.110.0140.00316.39
7.4.100.0080.00816.43
7.4.90.0180.00016.61
7.4.80.0030.01919.39
7.4.70.0120.00616.40
7.4.60.0100.00616.55
7.4.50.0130.00316.39
7.4.40.0100.01116.61
7.4.00.0070.00714.87
7.3.330.0000.00513.39
7.3.320.0050.00013.20
7.3.310.0020.00516.45
7.3.300.0030.00316.39
7.3.290.0070.00016.41
7.3.280.0100.00616.38
7.3.260.0080.01016.48
7.3.240.0120.00516.42
7.3.230.0130.00416.59
7.3.210.0160.00616.30
7.3.200.0070.01016.66
7.3.190.0080.00716.29
7.3.180.0130.00916.26
7.3.170.0110.00716.64
7.3.160.0090.00616.48
7.2.330.0060.01216.68
7.2.320.0030.01316.53
7.2.310.0100.01216.43
7.2.300.0070.01116.81
7.2.290.0130.00616.34
7.2.100.0770.01014.97
7.2.90.0810.00614.64
7.2.80.0610.00614.84
7.2.70.1540.00615.23
7.2.60.0620.01015.22
7.2.50.0890.00715.17
7.2.40.0640.00715.22
7.2.30.0560.01014.89
7.2.20.0660.00614.84
7.2.10.0860.01015.19
7.2.00.0810.01014.57
7.1.220.0760.01014.13
7.1.210.0540.01013.72
7.1.200.0550.00713.86
7.1.190.0670.00614.00
7.1.180.0870.01013.85
7.1.170.0610.00913.89
7.1.160.0650.00613.95
7.1.150.0620.00313.99
7.1.140.0850.01014.12
7.1.130.0850.00614.05
7.1.120.0830.01213.95
7.1.110.0830.00913.93
7.1.100.0730.00614.15
7.1.90.0640.01013.94
7.1.80.0840.01013.78
7.1.70.0710.00614.18
7.1.60.0930.00732.12
7.1.50.1020.00631.79
7.1.40.0910.00731.83
7.1.30.0760.01031.91
7.1.20.0990.00331.67
7.1.10.0710.00713.84
7.1.00.0840.00013.71
5.6.380.0070.01014.21

preferences:
28.67 ms | 403 KiB | 5 Q