3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((new XMLWriter())->openMemory()); var_dump(xmlwriter_open_memory()); var_dump(xmlwriter_open_memory()->startDocument());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VIjiq
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'XMLWriter'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'openMemory'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'xmlwriter_open_memory'
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'xmlwriter_open_memory'
         14        DO_ICALL                                         $6      
         15        INIT_METHOD_CALL                                         $6, 'startDocument'
         16        DO_FCALL                                      0  $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.66 ms | 1395 KiB | 17 Q