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); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/un2jd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $xmlString, !1 = $result_array, !2 = $xml_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22+%3F%3E+%0A%3CDATA%3E%0A%3CplayList%3E%0A%09%09%3CtimeStamp%3E201505261220%3C%2FtimeStamp%3E%0A%3CpicPlayList%3E%0A%09%3CPlayMode%3ESequential%3C%2FPlayMode%3E%0A%09%09%3CFile%3E1.jpg%3C%2FFile%3E%0A%09%09%3CFile%3E10.jpg%3C%2FFile%3E%0A%09%09%3CFile%3E11.jpg%3C%2FFile%3E%0A%09%09%3CFile%3E12.jpg%3C%2FFile%3E%0A%09%09%3CFile%3E13.jpg%3C%2FFile%3E%0A%09%09%3CFile%3E14.jpg%3C%2FFile%3E%0A%3C%2FpicPlayList%3E%0A%0A%3CvideoPlayList%3E%0A%09%3Cvideo%3E%0A%09%3CPlayMode%3ESequential%3C%2FPlayMode%3E%0A%09%3CScreen%3EFIRST%3C%2FScreen%3E%09%0A%09%3CType%3ENormal%3C%2FType%3E%0A%09%3CFile%3E9423dgg012.mp4%3C%2FFile%3E+%0A%09%3CFile%3Eletoutong15.mp4%3C%2FFile%3E%0A%09%3CFile%3Efengjing1.mp4%3C%2FFile%3E+%0A%09%3CFile%3Efengjing2.mp4%3C%2FFile%3E+%0A%09%3CFile%3Efengjing3.mp4%3C%2FFile%3E++%0A%09%3C%2Fvideo%3E%0A%0A%09%3Cvideo%3E%0A%09%3CPlayMode%3ERandom%3C%2FPlayMode%3E%0A%09%3CScreen%3ESECOND%3C%2FScreen%3E%09%0A%09%3CType%3ENormal%3C%2FType%3E%0A%09%3CFile%3E9423dgg012.mp4%3C%2FFile%3E+%0A%09%3CFile%3Eletoutong15.mp4%3C%2FFile%3E%0A%09%3CFile%3Efengjing1.mp4%3C%2FFile%3E+%0A%09%3CFile%3Efengjing2.mp4%3C%2FFile%3E++%0A%09%3CFile%3Efengjing3.mp4%3C%2FFile%3E++%0A%09%3C%2Fvideo%3E%09%0A%3C%2FvideoPlayList%3E%0A%0A%3CHtmlViewList%3E%0A%09%3CPlayMode%3ESequential%3C%2FPlayMode%3E%0A%09%3CScreen%3ESECOND%3C%2FScreen%3E%09%0A%09%3CType%3ENormal%3C%2FType%3E%0A%09%3CURL%3Ewww.lotto-pass.cn%2Fxxx%2Fxxx%2Fxxx%3C%2FURL%3E+%0A%09%3CURL%3Ewww.lotto-pass.cn%2Fxxx%2Fxxx%2Fxxx%3C%2FURL%3E+%0A%09%3CURL%3Ewww.lotto-pass.cn%2Fxxx%2Fxxx%2Fxxx%3C%2FURL%3E+%0A%09%3CURL%3Ewww.lotto-pass.cn%2Fxxx%2Fxxx%2Fxxx%3C%2FURL%3E+%0A%09%3CRefresh%3E15%3C%2FRefresh%3E%0A%3C%2FHtmlViewList%3E%0A%3C%2FplayList%3E%0A%3C%2FDATA%3E%0A%0A'
   55     1        INIT_FCALL                                               'json_decode'
          2        INIT_FCALL                                               'json_encode'
          3        INIT_FCALL                                               'simplexml_load_string'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $6      
         11        ASSIGN                                           ~7      !2, $6
         12        ASSIGN                                                   !1, ~7
   56    13        ECHO                                                     '%0AOutput%3A%0A'
   57    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   58    17        ECHO                                                     '%0AThe+Json+output%0A'
   59    18        INIT_FCALL                                               'json_encode'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $10     
         21        ECHO                                                     $10
   61    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.17 ms | 1441 KiB | 17 Q