3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = "0;78d13qqoglyszmorspfwfdmwffgnubgr;\u003c?dpf sent len=\"1\"?\u003e\u003c?dpf orth code=\"unknown\" prop=\"Lesen;Lehnen;Lehren;Leasen;Leisen\" ?\u003elehsen\u003c?dpf /orth ?\u003e~~~\u003c?dpf /sent ?\u003e"; $response = preg_replace("/\\\\u([0-9a-f]{3,4})/i", "&#x\\1;", $response); $response = html_entity_decode($response , null, 'UTF-8'); $response = str_replace([ '<?dpf ', ' ?>', '?>' ], [ '<', '>', '>' ], $response); $response = substr($response, 36-1); echo $response; echo "\n"; $xml = simplexml_load_string($response ); $json = json_encode($xml); print_r(json_decode($json, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q2JKn
function name:  (null)
number of ops:  42
compiled vars:  !0 = $response, !1 = $xml, !2 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0%3B78d13qqoglyszmorspfwfdmwffgnubgr%3B%5Cu003c%3Fdpf+sent+len%3D%221%22%3F%5Cu003e%5Cu003c%3Fdpf+orth+code%3D%22unknown%22+prop%3D%22Lesen%3BLehnen%3BLehren%3BLeasen%3BLeisen%22+%3F%5Cu003elehsen%5Cu003c%3Fdpf+%2Forth+%3F%5Cu003e%7E%7E%7E%5Cu003c%3Fdpf+%2Fsent+%3F%5Cu003e'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%5Cu%28%5B0-9a-f%5D%7B3%2C4%7D%29%2Fi'
          3        SEND_VAL                                                 '%26%23x%5C1%3B'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    5     7        INIT_FCALL                                               'html_entity_decode'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 null
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
    6    13        INIT_FCALL                                               'str_replace'
         14        SEND_VAL                                                 <array>
         15        SEND_VAL                                                 <array>
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !0, $8
    8    19        INIT_FCALL                                               'substr'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 35
         22        DO_ICALL                                         $10     
         23        ASSIGN                                                   !0, $10
   10    24        ECHO                                                     !0
   11    25        ECHO                                                     '%0A'
   13    26        INIT_FCALL                                               'simplexml_load_string'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $12     
         29        ASSIGN                                                   !1, $12
   14    30        INIT_FCALL                                               'json_encode'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                         $14     
         33        ASSIGN                                                   !2, $14
   15    34        INIT_FCALL                                               'print_r'
         35        INIT_FCALL                                               'json_decode'
         36        SEND_VAR                                                 !2
         37        SEND_VAL                                                 <true>
         38        DO_ICALL                                         $16     
         39        SEND_VAR                                                 $16
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.02 ms | 1392 KiB | 29 Q