3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; class Bar { public function baz(\PDO $pdo) { echo "in"; } public function baz2(array $args) { var_dump($args); } } $bar = new Bar; $bar->baz2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WY7Vj
function name:  (null)
number of ops:  6
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Foo%5CBar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'baz2'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo\Bar:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WY7Vj
function name:  baz
number of ops:  3
compiled vars:  !0 = $pdo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'in'
    7     2      > RETURN                                                   null

End of function baz

Function baz2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WY7Vj
function name:  baz2
number of ops:  5
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   10     4      > RETURN                                                   null

End of function baz2

End of class Foo\Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.06 ms | 1395 KiB | 15 Q