3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString= '<?xml version="1.0" encoding="UTF-8" ?> <DATA> <playList> <timeStamp>201505261220</timeStamp> <picPlayList> <PlayMode>Sequential</PlayMode> <File>1.jpg</File> <File>10.jpg</File> <File>11.jpg</File> <File>12.jpg</File> <File>13.jpg</File> <File>14.jpg</File> </picPlayList> <videoPlayList> <video> <PlayMode>Sequential</PlayMode> <Screen>FIRST</Screen> <Type>Normal</Type> <File>9423dgg012.mp4</File> <File>letoutong15.mp4</File> <File>fengjing1.mp4</File> <File>fengjing2.mp4</File> <File>fengjing3.mp4</File> </video> <video> <PlayMode>Random</PlayMode> <Screen>SECOND</Screen> <Type>Normal</Type> <File>9423dgg012.mp4</File> <File>letoutong15.mp4</File> <File>fengjing1.mp4</File> <File>fengjing2.mp4</File> <File>fengjing3.mp4</File> </video> </videoPlayList> <HtmlViewList> <PlayMode>Sequential</PlayMode> <Screen>SECOND</Screen> <Type>Normal</Type> <URL>www.lotto-pass.cn/xxx/xxx/xxx</URL> <URL>www.lotto-pass.cn/xxx/xxx/xxx</URL> <URL>www.lotto-pass.cn/xxx/xxx/xxx</URL> <URL>www.lotto-pass.cn/xxx/xxx/xxx</URL> <Refresh>15</Refresh> </HtmlViewList> </playList> </DATA> '; $result_array = $xml_array = json_decode(json_encode(simplexml_load_string($xmlString)), true); echo "\nOutput:\n"; print_r($result_array); echo "\nThe Json output\n"; echo json_encode($result_array); ?>

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.120.0070.01118.54
8.3.110.0070.00420.94
8.3.100.0050.00324.06
8.3.90.0080.00026.77
8.3.80.0070.00316.75
8.3.70.0120.00318.65
8.3.60.0070.00716.63
8.3.50.0050.01321.29
8.3.40.0170.00318.86
8.3.30.0110.00419.31
8.3.20.0040.00420.59
8.3.10.0050.00323.78
8.3.00.0000.00819.30
8.2.240.0110.00817.14
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0060.00317.00
8.2.190.0160.00317.00
8.2.180.0180.00017.00
8.2.170.0110.00419.12
8.2.160.0150.00422.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00421.28
8.2.110.0030.00619.23
8.2.100.0110.00017.84
8.2.90.0090.00019.48
8.2.80.0040.00418.05
8.2.70.0040.00417.63
8.2.60.0040.00418.18
8.2.50.0080.00018.07
8.2.40.0000.00818.28
8.2.30.0080.00019.66
8.2.20.0070.00017.84
8.2.10.0050.00318.26
8.2.00.0000.00818.18
8.1.300.0030.00617.95
8.1.290.0040.00418.88
8.1.280.0180.00425.92
8.1.270.0070.01720.50
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.59
8.1.230.0070.00421.13
8.1.220.0030.00618.77
8.1.210.0070.00321.13
8.1.200.0030.00617.36
8.1.190.0060.00317.66
8.1.180.0050.00318.10
8.1.170.0000.00918.74
8.1.160.0000.00818.98
8.1.150.0000.00718.82
8.1.140.0030.00617.45
8.1.130.0000.00717.93
8.1.120.0070.00017.50
8.1.110.0040.00417.52
8.1.100.0060.00317.58
8.1.90.0000.00717.58
8.1.80.0030.00317.55
8.1.70.0000.00717.59
8.1.60.0030.00617.66
8.1.50.0060.00617.61
8.1.40.0000.01017.66
8.1.30.0040.00417.79
8.1.20.0040.00417.85
8.1.10.0070.00017.68
8.1.00.0080.00017.75
8.0.300.0040.00420.27
8.0.290.0070.00017.30
8.0.280.0030.00318.57
8.0.270.0030.00317.45
8.0.260.0040.00417.49
8.0.250.0030.00317.15
8.0.240.0030.00317.17
8.0.230.0040.00416.96
8.0.220.0000.00716.95
8.0.210.0070.00017.08
8.0.200.0000.00717.12
8.0.190.0000.00817.10
8.0.180.0040.00417.09
8.0.170.0080.00017.05
8.0.160.0040.00417.08
8.0.150.0030.00316.94
8.0.140.0040.00417.02
8.0.130.0030.00313.43
8.0.120.0050.00316.96
8.0.110.0050.00316.88
8.0.100.0040.00416.88
8.0.90.0040.00417.05
8.0.80.0130.00317.10
8.0.70.0040.00417.06
8.0.60.0020.00517.08
8.0.50.0050.00317.09
8.0.30.0140.00917.20
8.0.20.0080.01017.44
8.0.10.0050.00217.17
8.0.00.0060.01516.97
7.4.330.0000.00615.13
7.4.320.0030.00316.68
7.4.300.0030.00316.67
7.4.290.0040.00416.73
7.4.280.0030.00516.67
7.4.270.0040.00416.68
7.4.260.0070.00016.63
7.4.250.0000.00716.66
7.4.240.0030.00316.65
7.4.230.0040.00416.53
7.4.220.0090.00916.72
7.4.210.0040.01216.77
7.4.200.0030.00316.51
7.4.160.0090.00916.63
7.4.150.0170.00317.40
7.4.140.0100.01117.86
7.4.130.0140.00716.63
7.4.120.0060.01316.53
7.4.110.0120.00616.84
7.4.100.0060.01316.46
7.4.90.0060.01116.36
7.4.80.0070.01019.39
7.4.70.0110.01016.56
7.4.60.0140.00416.63
7.4.50.0000.00416.48
7.4.40.0150.01516.82
7.4.30.0110.00716.66
7.4.10.0090.00914.95
7.4.00.0080.00815.07
7.3.330.0050.00013.06
7.3.320.0060.00613.06
7.3.310.0000.00716.45
7.3.300.0030.00316.32
7.3.290.0030.01116.35
7.3.280.0070.01516.35
7.3.270.0210.02117.40
7.3.260.0090.01316.44
7.3.250.0090.01216.44
7.3.240.0100.01416.68
7.3.230.0150.00316.54
7.3.210.0070.01116.43
7.3.200.0140.00619.39
7.3.190.0100.00716.40
7.3.180.0120.00316.30
7.3.170.0050.01116.34
7.3.160.0100.00716.40
7.3.130.0070.01014.72
7.3.120.0070.00914.71
7.3.110.0070.01114.95
7.3.100.0080.00514.74
7.3.90.0060.00814.88
7.3.80.0050.01114.75
7.3.70.0100.00514.76
7.3.60.0100.00214.64
7.3.50.0030.00914.84
7.3.40.0020.01114.69
7.3.30.0030.00814.76
7.3.20.0030.01116.59
7.3.10.0110.00316.48
7.3.00.0050.00616.79
7.2.330.0110.00716.79
7.2.320.0100.00716.82
7.2.310.0090.00916.79
7.2.300.0100.00616.85
7.2.290.0130.00616.66
7.2.260.0070.01015.20
7.2.250.0050.01215.00
7.2.240.0090.00514.90
7.2.230.0030.01015.15
7.2.220.0070.00715.25
7.2.210.0070.00915.09
7.2.200.0030.01114.89
7.2.190.0070.00715.13
7.2.180.0090.00515.04
7.2.170.0070.00815.06
7.2.160.0030.01315.06
7.2.150.0070.01016.87
7.2.140.0040.01116.70
7.2.130.0110.00317.04
7.2.120.0030.00916.79
7.2.110.0000.01316.94
7.2.100.0040.01417.00
7.2.90.0030.01017.00
7.2.80.0100.00316.85
7.2.70.0110.00416.87
7.2.60.0040.01117.13
7.2.50.0060.00317.11
7.2.40.0130.00316.95
7.2.30.0100.01016.98
7.2.20.0030.01317.11
7.2.10.0030.01316.68
7.2.00.0060.00918.32
7.1.330.0080.00715.95
7.1.320.0110.00515.93
7.1.310.0060.00815.89
7.1.300.0050.00715.88
7.1.290.0030.01015.89
7.1.280.0040.01015.80
7.1.270.0070.00715.89
7.1.260.0070.00615.97
7.1.250.0060.00915.84
7.1.240.0060.00615.92
7.1.230.0150.00315.85
7.1.220.0030.01015.81
7.1.210.0040.00715.85
7.1.200.0070.01015.71
7.1.190.0100.00315.70
7.1.180.0130.00315.76
7.1.170.0040.00815.58
7.1.160.0000.01615.71
7.1.150.0060.01315.98
7.1.140.0070.00415.81
7.1.130.0060.00915.97
7.1.120.0050.00315.81
7.1.110.0030.00615.96
7.1.100.0010.01117.06
7.1.90.0030.00715.51
7.1.80.0030.00615.84
7.1.70.0070.00316.41
7.1.60.0110.00517.92
7.1.50.0060.01316.27
7.1.40.0030.01015.71
7.1.30.0030.00715.73
7.1.20.0100.00715.84
7.1.10.0030.01015.72
7.1.00.0080.04019.09
7.0.330.0030.01715.40
7.0.320.0090.00615.15
7.0.310.0030.01615.33
7.0.300.0100.00715.36
7.0.290.0100.01015.62
7.0.280.0100.01015.74
7.0.270.0070.01015.13
7.0.260.0150.00315.34
7.0.250.0000.01615.36
7.0.240.0070.01015.61
7.0.230.0050.00515.38
7.0.220.0080.00315.39
7.0.210.0100.00715.55
7.0.200.0030.01116.09
7.0.190.0100.00615.41
7.0.180.0130.00015.67
7.0.170.0120.00415.55
7.0.160.0080.00315.51
7.0.150.0030.01015.39
7.0.140.0030.00915.34
7.0.130.0080.00815.35
7.0.120.0030.01315.39
7.0.110.0090.00615.60
7.0.100.0140.00415.53
7.0.90.0120.04117.63
7.0.80.0380.04017.77
7.0.70.0320.04517.65
7.0.60.0290.05117.66
7.0.50.0350.04318.03
7.0.40.0100.04816.86
7.0.30.0080.03016.94
7.0.20.0070.03216.72
7.0.10.0080.04716.87
7.0.00.0120.03516.85
5.6.400.0200.00014.06
5.6.390.0100.01014.82
5.6.380.0070.01014.21
5.6.370.0150.00314.60
5.6.360.0060.00914.61
5.6.350.0130.00614.41
5.6.340.0040.00714.33
5.6.330.0030.00914.64
5.6.320.0100.00714.50
5.6.310.0070.01014.50
5.6.300.0180.00014.60
5.6.290.0120.00914.64
5.6.280.0060.03817.79
5.6.270.0130.00614.79
5.6.260.0040.01214.27
5.6.250.0100.00714.71
5.6.240.0120.04017.67
5.6.230.0100.04017.75
5.6.220.0180.03517.51
5.6.210.0120.03917.57
5.6.200.0100.05017.76
5.6.190.0040.05417.78
5.6.180.0050.04717.82
5.6.170.0050.02617.68
5.6.160.0150.04017.72
5.6.150.0080.04517.79
5.6.140.0070.04517.79
5.6.130.0090.04117.72
5.6.120.0100.04017.68
5.6.110.0160.03517.66
5.6.100.0070.03417.64
5.6.90.0130.04017.70
5.6.80.0080.03817.42
5.6.70.0140.03517.49
5.6.60.0100.03817.32
5.6.50.0100.02317.51
5.6.40.0080.02317.35
5.6.30.0070.02017.33
5.6.20.0060.02617.46
5.6.10.0090.03517.36
5.6.00.0070.03517.34
5.5.380.0080.04717.46
5.5.370.0130.04017.46
5.5.360.0050.04917.53
5.5.350.0160.03717.42
5.5.340.0110.04617.67
5.5.330.0070.04617.70
5.5.320.0100.03217.55
5.5.310.0050.03317.66
5.5.300.0100.04817.74
5.5.290.0070.04217.69
5.5.280.0100.03317.69
5.5.270.0180.03517.58
5.5.260.0090.03217.69
5.5.250.0110.04217.48
5.5.240.0070.04517.27
5.5.230.0030.04517.28
5.5.220.0050.02517.39
5.5.210.0080.02317.22
5.5.200.0020.02917.30
5.5.190.0050.02817.31
5.5.180.0160.02617.38
5.5.170.0040.01414.31
5.5.160.0050.02717.17
5.5.150.0140.02717.36
5.5.140.0030.02917.13
5.5.130.0100.04517.21
5.5.120.0030.02617.21
5.5.110.0060.02517.15
5.5.100.0020.02817.24
5.5.90.0050.03217.12
5.5.80.0080.02217.14
5.5.70.0030.02817.19
5.5.60.0090.03017.17
5.5.50.0070.03717.28
5.5.40.0070.02517.05
5.5.30.0040.03717.23
5.5.20.0020.02817.27
5.5.10.0050.01817.26
5.5.00.0050.04417.09
5.4.450.0070.04515.36
5.4.440.0100.04215.42
5.4.430.0070.03315.29
5.4.420.0090.02715.30
5.4.410.0030.04515.36
5.4.400.0120.03515.16
5.4.390.0060.02314.97
5.4.380.0100.02515.14
5.4.370.0070.03315.20
5.4.360.0070.02115.15
5.4.350.0120.03215.21
5.4.340.0090.01715.14
5.4.330.0030.01311.02
5.4.320.0060.02315.12
5.4.310.0070.02615.18
5.4.300.0030.02415.06
5.4.290.0050.03315.13
5.4.280.0100.01915.15
5.4.270.0050.02815.22
5.4.260.0140.03215.19
5.4.250.0100.03215.14
5.4.240.0030.02515.17
5.4.230.0100.02515.03
5.4.220.0080.02515.15
5.4.210.0070.02015.03
5.4.200.0050.02415.25
5.4.190.0110.01515.14
5.4.180.0030.02815.25
5.4.170.0020.04515.08
5.4.160.0110.01615.20
5.4.150.0050.02315.09
5.4.140.0060.02313.87
5.4.130.0060.02013.86
5.4.120.0030.02513.91
5.4.110.0090.02413.89
5.4.100.0020.02613.90
5.4.90.0030.04313.87
5.4.80.0090.02813.87
5.4.70.0090.01713.76
5.4.60.0070.02813.91
5.4.50.0110.01713.90
5.4.40.0020.02213.92
5.4.30.0090.02013.94
5.4.20.0070.03913.88
5.4.10.0130.03613.75
5.4.00.0110.03713.58
5.3.290.0000.03714.75
5.3.280.0070.03714.69
5.3.270.0030.03714.70
5.3.260.0000.05014.77
5.3.250.0030.03014.88
5.3.240.0100.03314.66
5.3.230.0030.07014.75
5.3.220.0070.04314.58
5.3.210.0030.03314.80
5.3.200.0100.07714.79
5.3.190.0030.05014.65
5.3.180.0000.03314.75
5.3.170.0100.05014.71
5.3.160.0130.05314.79
5.3.150.0030.04714.80
5.3.140.0030.06014.70
5.3.130.0070.05014.70
5.3.120.0070.03314.71
5.3.110.0030.08014.61
5.3.100.0000.08014.16
5.3.90.0070.07014.06
5.3.80.0000.08014.17
5.3.70.0070.07014.10
5.3.60.0070.07014.15
5.3.50.0100.03314.04
5.3.40.0100.07314.08
5.3.30.0070.07014.05
5.3.20.0070.05713.85
5.3.10.0170.06713.85
5.3.00.0100.07713.90
5.2.170.0000.05711.13
5.2.160.0070.04011.15
5.2.150.0130.05011.29
5.2.140.0130.05711.27
5.2.130.0170.05311.18
5.2.120.0030.05011.07
5.2.110.0030.06311.36
5.2.100.0070.06011.32
5.2.90.0070.06311.18
5.2.80.0030.06711.35
5.2.70.0000.05311.16
5.2.60.0100.05711.04
5.2.50.0030.06311.25
5.2.40.0000.04010.96
5.2.30.0100.04311.09
5.2.20.0030.06011.13
5.2.10.0030.05710.94
5.2.00.0030.04010.79
5.1.60.0070.0509.99
5.1.50.0030.05310.04
5.1.40.0030.05310.05
5.1.30.0030.05710.39
5.1.20.0100.04710.41
5.1.10.0000.06010.10
5.1.00.0030.05710.08
5.0.50.0030.0478.57
5.0.40.0030.0238.46
5.0.30.0100.0578.20
5.0.20.0070.0438.20
5.0.10.0030.0478.22
5.0.00.0000.0508.26
4.4.90.0000.0407.55
4.4.80.0030.0337.55
4.4.70.0030.0377.55
4.4.60.0030.0377.55
4.4.50.0000.0307.55
4.4.40.0000.0477.55
4.4.30.0070.0237.55
4.4.20.0070.0337.55
4.4.10.0070.0337.55
4.4.00.0000.0537.55
4.3.110.0000.0177.55
4.3.100.0000.0377.55
4.3.90.0000.0337.55
4.3.80.0030.0437.55
4.3.70.0070.0337.55
4.3.60.0000.0377.55
4.3.50.0100.0277.55
4.3.40.0030.0407.55
4.3.30.0000.0237.55
4.3.20.0030.0307.55
4.3.10.0000.0377.55
4.3.00.0030.0307.55

preferences:
66.47 ms | 403 KiB | 5 Q