3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s1 = "<a>b\nc</a>"; $s2 = "<a>&lt;b&gt;\n&lt;c&gt;</a>"; $p = xml_parser_create(); xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($p, $s1, $values); echo $values[0]['value'] . "\n\n"; $p = xml_parser_create(); xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($p, $s2, $values); echo $values[0]['value'] . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JC8HR
function name:  (null)
number of ops:  37
compiled vars:  !0 = $s1, !1 = $s2, !2 = $p, !3 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ca%3Eb%0Ac%3C%2Fa%3E'
    4     1        ASSIGN                                                   !1, '%3Ca%3E%26lt%3Bb%26gt%3B%0A%26lt%3Bc%26gt%3B%3C%2Fa%3E'
    6     2        INIT_FCALL                                               'xml_parser_create'
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !2, $6
    7     5        INIT_FCALL                                               'xml_parser_set_option'
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 4
          8        SEND_VAL                                                 1
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'xml_parse_into_struct'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !0
         13        SEND_REF                                                 !3
         14        DO_ICALL                                                 
   10    15        FETCH_DIM_R                                      ~10     !3, 0
         16        FETCH_DIM_R                                      ~11     ~10, 'value'
         17        CONCAT                                           ~12     ~11, '%0A%0A'
         18        ECHO                                                     ~12
   13    19        INIT_FCALL                                               'xml_parser_create'
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !2, $13
   14    22        INIT_FCALL                                               'xml_parser_set_option'
         23        SEND_VAR                                                 !2
         24        SEND_VAL                                                 4
         25        SEND_VAL                                                 1
         26        DO_ICALL                                                 
   16    27        INIT_FCALL                                               'xml_parse_into_struct'
         28        SEND_VAR                                                 !2
         29        SEND_VAR                                                 !1
         30        SEND_REF                                                 !3
         31        DO_ICALL                                                 
   17    32        FETCH_DIM_R                                      ~17     !3, 0
         33        FETCH_DIM_R                                      ~18     ~17, 'value'
         34        CONCAT                                           ~19     ~18, '%0A'
         35        ECHO                                                     ~19
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.83 ms | 1396 KiB | 19 Q