3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/html; charset=utf-8'); echo '<br />百度关键词URL编码转换示例:<br />'; $urlBaidu = 'http://www.baidu.com/s?wd=%D6%D0%CE%C4'; $arrParse = parse_url($urlBaidu); var_dump($arrParse); parse_str($arrParse ['query'],$output); echo '乱码:' . $output['wd'] . '<br />'; //将gb2312编码转换成utf-8编码 $strUTF8 = mb_convert_encoding($output['wd'], 'utf-8', 'gb2312'); echo '可读码:' . $strUTF8 . '<br />'; echo '<br />谷歌关键词URL编码转换示例:<br />'; $urlGoogle = 'http://www.google.cn/search?hl=zh-CN&source=hp&q=%E4%B8%AD%E6%96%87&aq=f&oq='; $arrParse = parse_url($urlGoogle); var_dump($arrParse); parse_str($arrParse ['query'],$output); //谷歌关键词URL编码是utf-8,不用再作转换 echo '可读码:' . $output['q'] . '<br />';

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.0150.00618.68
8.3.50.0100.00521.21
8.3.40.0200.00318.83
8.3.30.0030.01020.34
8.3.20.0000.00720.50
8.3.10.0030.00622.22
8.3.00.0030.00522.52
8.2.180.0140.00716.75
8.2.170.0120.00322.96
8.2.160.0070.01322.08
8.2.150.0080.00024.18
8.2.140.0150.00424.66
8.2.130.0200.00026.16
8.2.120.0080.00020.71
8.2.110.0060.00320.78
8.2.100.0110.00018.16
8.2.90.0000.00819.46
8.2.80.0070.00417.97
8.2.70.0030.00617.88
8.2.60.0000.00818.18
8.2.50.0000.00918.07
8.2.40.0040.00420.01
8.2.30.0070.00019.61
8.2.20.0040.00417.88
8.2.10.0040.00418.06
8.2.00.0000.00818.00
8.1.280.0060.01025.92
8.1.270.0000.00824.17
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00622.31
8.1.230.0040.00817.57
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0070.00317.59
8.1.190.0000.00717.65
8.1.180.0000.00819.38
8.1.170.0030.00618.90
8.1.160.0040.00419.01
8.1.150.0000.00818.94
8.1.140.0040.00417.59
8.1.130.0000.00817.83
8.1.120.0050.00217.70
8.1.110.0000.00817.53
8.1.100.0000.00717.77
8.1.90.0030.00317.68
8.1.80.0000.00717.66
8.1.70.0060.00317.62
8.1.60.0030.00617.77
8.1.50.0040.00417.75
8.1.40.0080.00017.66
8.1.30.0050.00217.71
8.1.20.0000.00817.67
8.1.10.0050.00317.70
8.1.00.0040.00417.80
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.63
8.0.270.0000.00717.30
8.0.260.0030.00316.86
8.0.250.0000.00717.05
8.0.240.0040.00417.09
8.0.230.0050.00316.96
8.0.220.0040.00416.93
8.0.210.0000.00716.91
8.0.200.0000.00617.12
8.0.190.0000.00717.08
8.0.180.0050.00216.95
8.0.170.0040.00416.92
8.0.160.0070.00017.07
8.0.150.0000.00816.94
8.0.140.0000.00716.94
8.0.130.0070.00013.45
8.0.120.0000.00816.88
8.0.110.0000.00817.02
8.0.100.0040.00417.04
8.0.90.0040.00417.00
8.0.80.0090.00617.02
8.0.70.0070.00016.93
8.0.60.0040.00417.00
8.0.50.0080.00017.04
8.0.30.0130.00617.22
8.0.20.0120.00617.44
8.0.10.0000.00717.08
8.0.00.0140.00816.86
7.4.330.0000.00715.00
7.4.320.0030.00316.57
7.4.300.0030.00316.62
7.4.290.0000.00716.68
7.4.280.0040.00416.77
7.4.270.0030.00316.58
7.4.260.0000.00513.39
7.4.250.0030.00516.59
7.4.240.0030.00516.55
7.4.230.0000.00716.63
7.4.220.0060.01216.72
7.4.210.0090.00816.72
7.4.200.0030.00316.52
7.4.190.0000.00716.68
7.4.160.0090.01116.53
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0140.00516.62
7.4.120.0070.01116.59
7.4.110.0100.01116.52
7.4.100.0110.00716.71
7.4.90.0130.00416.52
7.4.80.0120.00419.39
7.4.70.0120.00916.51
7.4.60.0110.00616.54
7.4.50.0000.00816.86
7.4.40.0100.00622.77
7.4.30.0120.00916.85
7.4.10.0080.01214.77
7.4.00.0100.00714.98
7.3.330.0030.00313.24
7.3.320.0020.00213.39
7.3.310.0070.00016.50
7.3.300.0000.00716.44
7.3.290.0100.01016.55
7.3.280.0140.00416.36
7.3.270.0160.01017.40
7.3.260.0090.01516.52
7.3.250.0130.01016.54
7.3.240.0070.01016.85
7.3.230.0030.01416.57
7.3.210.0070.01016.64
7.3.200.0140.00619.39
7.3.190.0030.01416.65
7.3.180.0080.00816.63
7.3.170.0100.00616.75
7.3.160.0100.01016.60
7.3.130.0100.01014.80
7.3.120.0090.00815.13
7.3.110.0090.00914.97
7.3.100.0050.00815.12
7.3.90.0070.00814.93
7.3.80.0060.00915.04
7.3.70.0060.00814.80
7.3.60.0050.00914.79
7.3.50.0060.00914.95
7.3.40.0030.00814.86
7.3.30.0100.00714.99
7.3.20.0100.00516.86
7.3.10.0060.00616.66
7.3.00.0080.00816.79
7.2.330.0090.00916.55
7.2.320.0080.01116.92
7.2.310.0150.00416.93
7.2.300.0090.01316.78
7.2.290.0070.01016.54
7.2.260.0120.00415.51
7.2.250.0110.00715.31
7.2.240.0090.00515.17
7.2.230.0050.00815.35
7.2.220.0050.00915.38
7.2.210.0080.00815.13
7.2.200.0040.01215.25
7.2.190.0070.00515.23
7.2.180.0070.00815.25
7.2.170.0050.01315.36
7.2.160.0090.00715.27
7.2.150.0090.00617.02
7.2.140.0100.00517.16
7.2.130.0050.00816.94
7.2.120.0070.01217.16
7.2.110.0070.00516.94
7.2.100.0050.01317.02
7.2.90.0090.00717.03
7.2.80.0080.00717.09
7.2.70.0060.01317.04
7.2.60.0090.00817.08
7.2.50.0120.00517.06
7.2.40.0110.00617.08
7.2.30.0090.00816.97
7.2.20.0140.00417.13
7.2.10.0090.00717.07
7.2.00.0100.00616.95
7.1.330.0080.00616.05
7.1.320.0070.00616.11
7.1.310.0110.00616.13
7.1.300.0100.00415.99
7.1.290.0090.00615.94
7.1.280.0100.00515.94
7.1.270.0110.00615.88
7.1.260.0090.00316.02
7.1.250.0050.01016.00
7.1.240.0040.01116.09
7.1.230.0000.01215.88
7.1.220.0030.01216.07
7.1.210.0090.00615.70
7.1.200.0030.01416.14
7.1.190.0110.00516.07
7.1.180.0000.01016.09
7.1.170.0090.00316.01
7.1.160.0100.00716.09
7.1.150.0030.01316.18
7.1.140.0060.00915.84
7.1.130.0110.00415.78
7.1.120.0030.01015.80
7.1.110.0040.00816.06
7.1.100.0060.00615.80
7.1.90.0030.01016.24
7.1.80.0030.00715.99
7.1.70.0000.01016.75
7.1.60.0050.01117.79
7.1.50.0040.01416.51
7.1.40.0090.00615.96
7.1.30.0100.00315.91
7.1.20.0110.00416.02
7.1.10.0090.00316.00
7.1.00.0050.04219.24
7.0.330.0070.01015.53
7.0.320.0070.00715.43
7.0.310.0040.01415.75
7.0.300.0060.01215.20
7.0.290.0040.01115.38
7.0.280.0090.00515.55
7.0.270.0030.01215.46
7.0.260.0040.00415.64
7.0.250.0080.00615.43
7.0.240.0060.00915.71
7.0.230.0000.01515.42
7.0.220.0100.00715.45
7.0.210.0090.00015.49
7.0.200.0080.00316.34
7.0.190.0100.00715.36
7.0.180.0030.01015.60
7.0.170.0080.00815.38
7.0.160.0070.00715.54
7.0.150.0060.00615.69
7.0.140.0000.04318.67
7.0.130.0030.01015.48
7.0.120.0090.00915.46
7.0.110.0140.00015.57
7.0.100.0090.04117.68
7.0.90.0180.05417.93
7.0.80.0230.04017.96
7.0.70.0230.04317.84
7.0.60.0180.02317.85
7.0.50.0180.04918.05
7.0.40.0080.02616.71
7.0.30.0070.03516.99
7.0.20.0030.04816.91
7.0.10.0120.04116.83
7.0.00.0110.03916.83
5.6.400.0030.01014.52
5.6.390.0000.01514.42
5.6.380.0040.01114.48
5.6.370.0040.01114.35
5.6.360.0030.01014.58
5.6.350.0110.00414.34
5.6.340.0080.00614.41
5.6.330.0030.01114.59
5.6.320.0090.00614.68
5.6.310.0070.00314.32
5.6.300.0060.00914.68
5.6.290.0070.00714.51
5.6.280.0060.00914.67
5.6.270.0090.00614.57
5.6.260.0110.00414.44
5.6.250.0070.03217.53
5.6.240.0070.02817.71
5.6.230.0090.03417.66
5.6.220.0080.04017.46
5.6.210.0100.03917.47
5.6.200.0050.04717.74
5.6.190.0030.03617.79
5.6.180.0080.04617.61
5.6.170.0090.04517.57
5.6.160.0090.04317.96
5.6.150.0070.02917.76
5.6.140.0070.02817.79
5.6.130.0050.03217.82
5.6.120.0090.04217.86
5.6.110.0070.04117.76
5.6.100.0100.03517.65
5.6.90.0100.04317.71
5.6.80.0120.04217.45
5.6.70.0080.04217.37
5.6.60.0050.04817.45
5.6.50.0080.04517.39
5.6.40.0070.04117.29
5.6.30.0080.03817.34
5.6.20.0000.05017.37
5.6.10.0070.04417.36
5.6.00.0070.04517.37
5.5.380.0020.03517.55
5.5.370.0070.04517.45
5.5.360.0070.04317.61
5.5.350.0040.04417.33
5.5.340.0090.03917.62
5.5.330.0130.03917.53
5.5.320.0060.02317.36
5.5.310.0060.04717.35
5.5.300.0120.03817.29
5.5.290.0080.04717.58
5.5.280.0090.04217.74
5.5.270.0120.03217.47
5.5.260.0130.04217.79
5.5.250.0070.03217.51
5.5.240.0090.03817.27
5.5.230.0100.04017.16
5.5.220.0110.02317.11
5.5.210.0100.04517.20
5.5.200.0080.04416.96
5.5.190.0060.04417.21
5.5.180.0130.03617.20
5.5.170.0030.01314.10
5.5.160.0130.03817.17
5.5.150.0070.04317.13
5.5.140.0090.03316.91
5.5.130.0080.02217.14
5.5.120.0090.03217.18
5.5.110.0050.04717.20
5.5.100.0150.03617.18
5.5.90.0090.04017.34
5.5.80.0050.04817.25
5.5.70.0060.04417.28
5.5.60.0060.03517.36
5.5.50.0070.04517.14
5.5.40.0080.04317.26
5.5.30.0120.03717.33
5.5.20.0110.03517.30
5.5.10.0110.04116.96
5.5.00.0070.05017.07
5.4.450.0080.03915.21
5.4.440.0070.03115.32
5.4.430.0120.03815.13
5.4.420.0080.03815.06
5.4.410.0030.03414.98
5.4.400.0020.03715.02
5.4.390.0110.04115.07
5.4.380.0090.03515.10
5.4.370.0070.03514.96
5.4.360.0060.03615.10
5.4.350.0080.04315.00
5.4.340.0070.03014.81
5.4.330.0090.00611.09
5.4.320.0020.04615.00
5.4.310.0060.02614.93
5.4.300.0100.03615.03
5.4.290.0050.03714.98
5.4.280.0060.04515.01
5.4.270.0100.04214.83
5.4.260.0070.04415.04
5.4.250.0070.04314.97
5.4.240.0060.03815.07
5.4.230.0050.02915.16
5.4.220.0050.04115.11
5.4.210.0070.03815.06
5.4.200.0050.03715.28
5.4.190.0080.04115.29
5.4.180.0050.02715.09
5.4.170.0050.04214.89
5.4.160.0050.03915.12
5.4.150.0090.04215.09
5.4.140.0050.04113.77
5.4.130.0080.03813.69
5.4.120.0080.03813.74
5.4.110.0060.04113.84
5.4.100.0030.02713.67
5.4.90.0050.02813.75
5.4.80.0040.02313.79
5.4.70.0050.02213.72
5.4.60.0090.03313.72
5.4.50.0040.02213.69
5.4.40.0070.01913.80
5.4.30.0020.02913.81
5.4.20.0030.02613.78
5.4.10.0110.01513.62
5.4.00.0090.01913.53
5.3.290.0040.04512.60
5.3.280.0020.04512.42
5.3.270.0070.03512.44
5.3.260.0000.04512.48
5.3.250.0050.02512.45
5.3.240.0030.02812.43
5.3.230.0050.04112.40
5.3.220.0080.03712.56
5.3.210.0060.04012.43
5.3.200.0050.04312.37
5.3.190.0040.03412.46
5.3.180.0080.02612.57
5.3.170.0050.02312.54
5.3.160.0000.02612.51
5.3.150.0040.02312.59
5.3.140.0050.03512.49
5.3.130.0100.01812.41
5.3.120.0050.02212.39
5.3.110.0050.01912.46
5.3.100.0030.02312.24
5.3.90.0100.01812.16
5.3.80.0050.02012.09
5.3.70.0020.03412.18
5.3.60.0030.04312.24
5.3.50.0080.02412.21
5.3.40.0050.02312.17
5.3.30.0050.02012.17
5.3.20.0060.01812.02
5.3.10.0020.02211.93
5.3.00.0050.03111.91
5.2.170.0030.02711.61
5.2.160.0100.04311.61
5.2.150.0000.03311.61
5.2.140.0000.03011.61
5.2.130.0030.02711.61
5.2.120.0000.03711.61
5.2.110.0030.03311.61
5.2.100.0030.04311.61
5.2.90.0000.03011.61
5.2.80.0030.03311.61
5.2.70.0000.03011.61
5.2.60.0070.02311.61
5.2.50.0000.03011.61
5.2.40.0000.03011.61
5.2.30.0000.03711.61
5.2.20.0000.03311.61
5.2.10.0000.03711.61
5.2.00.0000.03011.61
5.1.60.0000.02711.61
5.1.50.0030.02711.61
5.1.40.0070.02011.61
5.1.30.0000.02711.61
5.1.20.0030.02311.61
5.1.10.0070.02311.61
5.1.00.0000.02711.61
5.0.50.0030.02011.61
5.0.40.0000.02011.61
5.0.30.0000.03011.61
5.0.20.0030.02011.61
5.0.10.0070.01711.61
5.0.00.0000.03011.61
4.4.90.0000.01711.61
4.4.80.0000.01711.61
4.4.70.0030.01311.61
4.4.60.0030.01311.61
4.4.50.0000.01711.61
4.4.40.0030.02311.61
4.4.30.0030.01311.61
4.4.20.0030.01311.61
4.4.10.0000.01711.61
4.4.00.0030.02011.61
4.3.110.0000.01711.61
4.3.100.0000.01711.61
4.3.90.0000.01311.61
4.3.80.0000.02311.61
4.3.70.0000.01311.61
4.3.60.0030.01011.61
4.3.50.0000.01711.61
4.3.40.0000.02311.61
4.3.30.0000.01711.61
4.3.20.0030.01311.61
4.3.10.0000.01711.61
4.3.00.0000.01311.61

preferences:
62.23 ms | 401 KiB | 5 Q