3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo($file, $args) { extract($args); return $file; } } $f = new Foo; var_dump($f->doFoo('test', array('file' => $f)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4oru5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'doFoo'
          5        SEND_VAL_EX                                              'test'
          6        INIT_ARRAY                                       ~4      !0, 'file'
          7        SEND_VAL_EX                                              ~4
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Foo:
Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4oru5
function name:  doFoo
number of ops:  7
compiled vars:  !0 = $file, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        INIT_FCALL                                               'extract'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
   10     5      > RETURN                                                   !0
   11     6*     > RETURN                                                   null

End of function dofoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.59 ms | 1395 KiB | 17 Q