3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version='1.0'?> <always> <be><![CDATA[always be testing!]]></be> </always> XML; $sml = new SimpleXMLElement ($xml); $result = $sml->xpath('/always/be'); echo (string) array_pop($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gjkaE
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xml, !1 = $sml, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%271.0%27%3F%3E%0A%3Calways%3E%0A+%3Cbe%3E%3C%21%5BCDATA%5Balways+be+testing%21%5D%5D%3E%3C%2Fbe%3E%0A%3C%2Falways%3E'
   11     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   13     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2Falways%2Fbe'
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
   14     9        INIT_FCALL                                               'array_pop'
         10        SEND_REF                                                 !2
         11        DO_ICALL                                         $9      
         12        CAST                                          6  ~10     $9
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.72 ms | 1394 KiB | 15 Q