3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_fragment_from_api = '{\"caption\" => \"Genes (Comprehensive set from GENCODE 26)\",\"colour_key\" => \"[biotype]\",\"default\" => {\"MultiBottom\" => \"collapsed_label\",\"MultiTop\" => \"gene_label\",\"alignsliceviewbottom\" => \"as_collapsed_label\",\"contigviewbottom\" => \"transcript_label\",\"contigviewtop\" => \"gene_label\",\"cytoview\" => \"gene_label\"},\"key\" => \"ensembl\",\"label_key\" => \"[biotype]\",\"multi_name\" => \"GENCODE 26 Comprehensive gene set\",\"name\" => \"Comprehensive Gene Annotations from GENCODE 26\"}'; echo $json_frament_from_api; echo "Alex Tartan:\n"; $string = $json_fragment_from_api; $string = str_replace('\"','"', $string); $string = str_replace('=>',':', $string); echo $string; echo "ikegami:\n"; $json_from_api = '{"result":' . $json_fragment_from_api . '}'; $response = json_decode($json_from_api, true); $perl_code = $response["result"]; $desired_json = str_replace(' =>', ':', $perl_code); echo $desired_json; ?>

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.3.60.0120.00916.75
8.3.50.0100.00716.45
8.3.40.0140.00718.94
8.3.30.0110.00418.51
8.3.20.0100.00021.46
8.3.10.0060.00321.76
8.3.00.0090.00017.89
8.2.180.0070.01018.50
8.2.170.0100.01022.96
8.2.160.0070.00721.13
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00020.35
8.2.120.0040.00426.35
8.2.110.0060.00321.25
8.2.100.0110.00017.91
8.2.90.0000.00818.09
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0060.00320.64
8.2.30.0000.00819.36
8.2.20.0040.00418.18
8.2.10.0000.00918.11
8.2.00.0030.00518.11
8.1.280.0100.00325.92
8.1.270.0030.00522.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00422.06
8.1.230.0000.01120.97
8.1.220.0050.00317.74
8.1.210.0040.00420.10
8.1.200.0060.00317.35
8.1.190.0080.00017.40
8.1.180.0040.00418.10
8.1.170.0080.00018.74
8.1.160.0040.00418.93
8.1.150.0000.00720.06
8.1.140.0080.00019.63
8.1.130.0040.00418.81
8.1.120.0040.00417.47
8.1.110.0030.00617.37
8.1.100.0000.00717.48
8.1.90.0000.00817.36
8.1.80.0050.00217.52
8.1.70.0030.00317.39
8.1.60.0030.00517.46
8.1.50.0080.00017.46
8.1.40.0040.00417.57
8.1.30.0000.00717.68
8.1.20.0000.00817.63
8.1.10.0080.00017.47
8.1.00.0000.00817.42
8.0.300.0050.00320.16
8.0.290.0000.00716.75
8.0.280.0070.00018.41
8.0.270.0000.00817.20
8.0.260.0060.00016.95
8.0.250.0030.00317.04
8.0.240.0000.00717.04
8.0.230.0040.00417.05
8.0.220.0000.00716.97
8.0.210.0000.00716.98
8.0.200.0000.00617.00
8.0.190.0020.00516.86
8.0.180.0000.00717.02
8.0.170.0070.00016.86
8.0.160.0030.00316.84
8.0.150.0000.00716.78
8.0.140.0040.00416.87
8.0.130.0000.00513.36
8.0.120.0000.00816.91
8.0.110.0000.00716.98
8.0.100.0000.00716.82
8.0.90.0030.00316.79
8.0.80.0110.00516.84
8.0.70.0000.00816.96
8.0.60.0040.00416.96
8.0.50.0000.00716.73
8.0.30.0090.01117.17
8.0.20.0110.00917.40
8.0.10.0050.00317.03
8.0.00.0060.01216.52
7.4.330.0070.00015.55
7.4.320.0040.00416.38
7.4.300.0040.00416.55
7.4.290.0070.00016.40
7.4.280.0040.00416.43
7.4.270.0000.00716.50
7.4.260.0000.00513.09
7.4.250.0000.00716.55
7.4.240.0000.00716.50
7.4.230.0070.00016.57
7.4.220.0120.00816.65
7.4.210.0080.00816.55
7.4.200.0000.00716.33
7.4.160.0110.00816.40
7.4.150.0200.00417.40
7.4.140.0080.01017.86
7.4.130.0100.00916.37
7.4.120.0110.01016.57
7.4.110.0090.00916.39
7.4.100.0120.00416.51
7.4.90.0070.01116.49
7.4.80.0130.00319.39
7.4.70.0080.00816.56
7.4.60.0080.01516.39
7.4.50.0000.01316.48
7.4.40.0070.01016.79
7.4.30.0060.01016.48
7.4.00.0130.00314.92
7.3.330.0060.00313.12
7.3.320.0060.00013.19
7.3.310.0000.00716.26
7.3.300.0030.00316.34
7.3.290.0090.00716.38
7.3.280.0090.00816.39
7.3.270.0070.01017.40
7.3.260.0080.00816.44
7.3.250.0110.00716.52
7.3.240.0120.00516.39
7.3.230.0100.00716.61
7.3.210.0120.00616.34
7.3.200.0070.01116.52
7.3.190.0080.00816.61
7.3.180.0040.01216.76
7.3.170.0040.01416.48
7.3.160.0170.00016.32
7.3.10.0070.00716.60
7.3.00.0070.00316.48
7.2.330.0080.00816.49
7.2.320.0110.00916.79
7.2.310.0030.01316.56
7.2.300.0090.01216.76
7.2.290.0140.00316.57
7.2.130.0040.01116.96
7.2.120.0000.01216.94
7.2.110.0070.00716.86
7.2.100.0030.00616.86
7.2.90.0030.00916.68
7.2.80.0000.01616.93
7.2.70.0000.01217.12
7.2.60.0050.00816.67
7.2.50.0000.01317.04
7.2.40.0060.00316.93
7.2.30.0090.00316.79
7.2.20.0030.01017.13
7.2.10.0030.00716.77
7.2.00.0080.00618.06
7.1.250.0000.01015.72
7.1.200.0040.00815.58
7.1.100.0040.00718.33
7.1.70.0040.00416.82
7.1.60.1730.01733.20
7.1.50.0170.01332.93
7.1.40.0170.01332.69
7.1.30.0270.00732.69
7.1.20.0200.01332.87
7.1.10.0070.00714.70
7.1.00.1770.01015.00
7.0.200.1070.01314.90
7.0.190.0030.01014.81
7.0.180.1500.00314.35
7.0.170.0070.01314.45
7.0.160.1330.00314.46
7.0.150.1100.00714.30
7.0.140.0970.01014.66
7.0.130.0330.00714.45
7.0.120.0070.00714.66
7.0.110.1000.00714.54
7.0.100.1030.00314.41
7.0.90.0130.00714.38
7.0.80.0100.00714.63
7.0.70.1170.00314.41
7.0.60.1100.01314.28
7.0.50.1070.01014.67
7.0.40.1000.00714.73
7.0.30.1000.01314.50
7.0.20.1570.00314.51
7.0.10.1000.01014.67
7.0.00.0800.01714.47

preferences:
60.67 ms | 401 KiB | 5 Q