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 "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.0140.00716.63
8.3.50.0140.00316.63
8.3.40.0090.00918.79
8.3.30.0120.00318.85
8.3.20.0070.00321.77
8.3.10.0050.00321.90
8.3.00.0090.00017.93
8.2.180.0120.00318.48
8.2.170.0130.00822.96
8.2.160.0070.00721.21
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00422.06
8.2.120.0000.00826.35
8.2.110.0090.00321.02
8.2.100.0080.00418.03
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0030.00517.88
8.2.60.0040.00417.93
8.2.50.0000.00818.16
8.2.40.0040.00420.41
8.2.30.0040.00419.19
8.2.20.0000.00918.05
8.2.10.0000.00718.19
8.2.00.0030.00518.23
8.1.280.0040.01125.92
8.1.270.0070.00022.01
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.12
8.1.230.0000.01118.98
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0040.00417.41
8.1.180.0000.00918.10
8.1.170.0040.00418.57
8.1.160.0060.00318.89
8.1.150.0070.00020.14
8.1.140.0030.00519.58
8.1.130.0040.00418.89
8.1.120.0030.00317.43
8.1.110.0080.00017.36
8.1.100.0000.00817.42
8.1.90.0040.00417.38
8.1.80.0040.00417.50
8.1.70.0000.00717.50
8.1.60.0050.00317.48
8.1.50.0000.00717.50
8.1.40.0000.00817.47
8.1.30.0000.00817.67
8.1.20.0030.00617.54
8.1.10.0050.00317.57
8.1.00.0040.00417.51
8.0.300.0060.00320.06
8.0.290.0070.00016.63
8.0.280.0000.00718.48
8.0.270.0070.00016.76
8.0.260.0040.00416.80
8.0.250.0070.00016.98
8.0.240.0050.00216.91
8.0.230.0060.00316.89
8.0.220.0000.00716.95
8.0.210.0040.00416.98
8.0.200.0000.00617.03
8.0.190.0000.00817.06
8.0.180.0040.00416.93
8.0.170.0000.00816.98
8.0.160.0070.00016.92
8.0.150.0000.00716.86
8.0.140.0050.00216.89
8.0.130.0050.00013.40
8.0.120.0060.00316.97
8.0.110.0040.00416.95
8.0.100.0000.00716.83
8.0.90.0070.00016.87
8.0.80.0030.01816.91
8.0.70.0040.00416.75
8.0.60.0040.00416.68
8.0.50.0040.00416.79
8.0.30.0080.00817.05
8.0.20.0120.00917.40
8.0.10.0030.00516.85
8.0.00.0070.01016.49
7.4.330.0030.00315.55
7.4.320.0030.00316.41
7.4.300.0000.00716.44
7.4.290.0070.00016.55
7.4.280.0030.00516.59
7.4.270.0070.00016.45
7.4.260.0000.00513.21
7.4.250.0040.00416.51
7.4.240.0000.00716.46
7.4.230.0030.00316.38
7.4.220.0200.00716.55
7.4.210.0060.00916.48
7.4.200.0040.00416.57
7.4.160.0070.01016.46
7.4.150.0110.00917.40
7.4.140.0130.00517.86
7.4.130.0070.01116.55
7.4.120.0070.01316.47
7.4.110.0070.01316.41
7.4.100.0090.00816.64
7.4.90.0030.01416.49
7.4.80.0100.00719.39
7.4.70.0120.00316.49
7.4.60.0090.01616.52
7.4.50.0060.01016.55
7.4.40.0140.00716.30
7.4.30.0120.00616.40
7.4.10.0080.01114.83
7.4.00.0060.01114.84
7.3.330.0040.00413.09
7.3.320.0050.00013.07
7.3.310.0000.00716.36
7.3.300.0040.00416.36
7.3.290.0090.00716.32
7.3.280.0100.00716.33
7.3.270.0110.00617.40
7.3.260.0120.00616.53
7.3.250.0100.01016.42
7.3.240.0110.00816.48
7.3.230.0100.01316.27
7.3.210.0120.00316.52
7.3.200.0100.01016.29
7.3.190.0030.01316.62
7.3.180.0120.00416.43
7.3.170.0070.01016.49
7.3.160.0160.00016.38
7.3.130.0090.00914.98
7.3.120.0070.00714.64
7.3.110.0030.01614.99
7.3.100.0060.00914.86
7.3.90.0060.00614.80
7.3.80.0000.01414.76
7.3.70.0000.01114.68
7.3.60.0040.00814.88
7.3.50.0030.00914.63
7.3.40.0000.01014.79
7.3.30.0060.00914.98
7.3.20.0000.00916.75
7.3.10.0030.00716.51
7.3.00.0060.00316.57
7.2.330.0060.01216.84
7.2.320.0110.01116.63
7.2.310.0040.01116.75
7.2.300.0130.00316.68
7.2.290.0070.01016.55
7.2.260.0150.00414.99
7.2.250.0070.00715.23
7.2.240.0100.00714.91
7.2.230.0070.00315.28
7.2.220.0000.01415.06
7.2.210.0060.01014.89
7.2.200.0060.00915.20
7.2.190.0030.01014.71
7.2.180.0060.00315.23
7.2.170.0110.00315.08
7.2.160.0040.00814.88
7.2.150.0030.00616.92
7.2.140.0030.00616.94
7.2.130.0040.00816.64
7.2.120.0050.00616.71
7.2.110.0030.00816.74
7.2.100.0070.00716.83
7.2.90.0080.00516.76
7.2.80.0090.00916.91
7.2.70.0060.00616.79
7.2.60.0100.00717.01
7.2.50.0080.00916.72
7.2.40.0120.00616.88
7.2.30.0100.00716.90
7.2.20.0120.00517.04
7.2.10.0120.00417.00
7.2.00.0090.00516.91
7.1.330.0070.01015.96
7.1.320.0030.00915.80
7.1.310.0110.00416.14
7.1.300.0000.01015.75
7.1.290.0030.01015.72
7.1.280.0090.00615.84
7.1.270.0070.01015.59
7.1.260.0040.01116.06
7.1.250.0110.00315.75
7.1.240.0050.00715.72
7.1.230.0050.00615.56
7.1.220.0060.00715.62
7.1.210.0050.00815.85
7.1.200.0050.00815.79
7.1.190.0080.00815.81
7.1.180.0050.00915.93
7.1.170.0090.00515.55
7.1.160.0070.00515.68
7.1.150.0060.00915.82
7.1.140.0050.01015.81
7.1.130.0050.00715.77
7.1.120.0100.00415.53
7.1.110.0100.00715.86
7.1.100.0040.01015.74
7.1.90.0060.00715.81
7.1.80.0090.00315.68
7.1.70.0040.00716.13
7.1.60.0390.00621.74
7.1.50.0400.00521.55
7.1.40.0180.00621.29
7.1.30.0140.00721.36
7.1.20.0410.00621.51
7.1.10.0090.00615.48
7.1.00.0250.00815.25
7.0.330.0100.00315.41
7.0.320.0020.01115.46
7.0.310.0060.00715.43
7.0.300.0080.00615.47
7.0.290.0100.00515.47
7.0.280.0100.00915.31
7.0.270.0090.00115.36
7.0.260.0050.00615.48
7.0.250.0050.00915.47
7.0.240.0050.00615.54
7.0.230.0080.00315.34
7.0.220.0070.00515.48
7.0.210.0060.00615.53
7.0.200.0370.00315.12
7.0.190.0360.00315.37
7.0.180.0320.00815.03
7.0.170.0600.00315.08
7.0.160.0270.01215.10
7.0.150.0080.00615.12
7.0.140.0100.00415.23
7.0.130.0350.00815.23
7.0.120.0100.00815.11
7.0.110.0490.01015.22
7.0.100.0420.00715.11
7.0.90.0080.00615.13
7.0.80.0080.01015.23
7.0.70.0370.00615.17
7.0.60.0440.00815.09
7.0.50.0130.00715.07
7.0.40.0390.00713.89
7.0.30.0330.00913.79
7.0.20.0260.00713.71
7.0.10.0060.00713.79
7.0.00.0020.01213.87
5.6.400.0080.00414.43
5.6.390.0080.00814.62
5.6.380.0060.00714.56
5.6.370.0030.00714.17
5.6.360.0060.00914.32
5.6.350.0000.01514.41
5.6.340.0030.01414.29
5.6.330.0030.00714.44
5.6.320.0080.00414.29
5.6.310.0000.00914.25
5.6.300.0040.00813.89
5.6.290.0070.00714.50
5.6.280.0030.01714.24
5.6.270.0070.01014.49
5.6.260.0000.01114.30
5.6.250.0070.00714.37
5.6.240.0100.00314.39
5.6.230.0060.01014.57
5.6.220.0070.01014.20
5.6.210.0070.00714.38
5.6.200.0030.00714.37
5.6.190.0100.00614.74
5.6.180.0090.00614.36
5.6.170.0040.00714.63
5.6.160.0060.00314.29
5.6.150.0120.00314.40
5.6.140.0000.00814.60
5.6.130.0070.00414.39
5.6.120.0060.00314.26
5.6.110.0090.00314.30
5.6.100.0070.00714.42
5.6.90.0030.00614.61
5.6.80.0030.00614.24
5.6.70.0060.00914.23
5.6.60.0070.00314.09
5.6.50.0100.00714.22
5.6.40.0070.00714.13
5.6.30.0040.01214.35
5.6.20.0000.01414.07
5.6.10.0030.01014.62
5.6.00.0030.01014.16

preferences:
85.85 ms | 400 KiB | 5 Q