3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(){ echo ':-)'; } } $foo = new Foo('fadsfas', array(16), new stdClass); $foo->bar('fasjf');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LvJJ4
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Foo'
          1        SEND_VAL_EX                                              'fadsfas'
          2        SEND_VAL_EX                                              <array>
          3        NEW                                              $2      'stdClass'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $1
   12     8        INIT_METHOD_CALL                                         !0, 'bar'
          9        SEND_VAL_EX                                              'fasjf'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LvJJ4
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     '%3A-%29'
    7     1      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1384 KiB | 13 Q