3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="utf-8" ?> <simplexml> <regex><![CDATA[/(^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+.[a-zA-Z.]{2,5}\$)|^\$/i]]></regex> </simplexml>'; $parser = xml_parser_create('UTF-8'); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_set_character_data_handler($parser, function ($parser, $data) { var_dump($data); }); xml_parse($parser, $xml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4dcOo
function name:  (null)
number of ops:  25
compiled vars:  !0 = $xml, !1 = $parser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22+%3F%3E+%3Csimplexml%3E+%3Cregex%3E%3C%21%5BCDATA%5B%2F%28%5E%5Ba-zA-Z0-9._-%5D%2B%40%5Ba-zA-Z0-9-%5D%2B.%5Ba-zA-Z.%5D%7B2%2C5%7D%5C%24%29%7C%5E%5C%24%2Fi%5D%5D%3E%3C%2Fregex%3E+%3C%2Fsimplexml%3E'
    5     1        INIT_FCALL                                               'xml_parser_create'
          2        SEND_VAL                                                 'UTF-8'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'xml_parser_set_option'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 4
          8        SEND_VAL                                                 1
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'xml_parser_set_option'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 0
         14        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'xml_set_character_data_handler'
         16        SEND_VAR                                                 !1
         17        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F4dcOo%3A8%240'
   10    18        SEND_VAL                                                 ~7
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'xml_parse'
         21        SEND_VAR                                                 !1
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F4dcOo%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4dcOo
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $parser, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
   10     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F4dcOo%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.21 ms | 1396 KiB | 23 Q