3v4l.org

run code in 300+ PHP versions simultaneously
<?php class One { var $x = 10; } function go($name, $args) { $x = xmlrpc_encode_request($name,$args); } $o = new One(); print "Start with an object...\n"; var_dump($o); print "Do some stuff...\n"; go('test',array($o)); print "Now we have an array ?!\n"; var_dump($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aSsXr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'One'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        ECHO                                                     'Start+with+an+object...%0A'
   10     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   12     7        ECHO                                                     'Do+some+stuff...%0A'
   13     8        INIT_FCALL                                               'go'
          9        SEND_VAL                                                 'test'
         10        INIT_ARRAY                                       ~5      !0
         11        SEND_VAL                                                 ~5
         12        DO_FCALL                                      0          
   15    13        ECHO                                                     'Now+we+have+an+array+%3F%21%0A'
   16    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function go:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aSsXr
function name:  go
number of ops:  8
compiled vars:  !0 = $name, !1 = $args, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL_BY_NAME                                       'xmlrpc_encode_request'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !2, $3
    6     7      > RETURN                                                   null

End of function go

Class One: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.78 ms | 1398 KiB | 16 Q