3v4l.org

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

Class Foo:
Function dummy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iMgNV
function name:  dummy
number of ops:  6
compiled vars:  !0 = $id, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        CONCAT                                           ~2      !0, '+'
          3        CONCAT                                           ~3      ~2, !1
          4        ECHO                                                     ~3
    6     5      > RETURN                                                   null

End of function dummy

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.3 ms | 1393 KiB | 13 Q