3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Demo { private function hello($name) { echo sprintf('Hello '.$name); } } $demo = new Demo(); $demo->hello('Nigel');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R5e0l
function name:  (null)
number of ops:  7
compiled vars:  !0 = $demo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Demo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_METHOD_CALL                                         !0, 'hello'
          4        SEND_VAL_EX                                              'Nigel'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function hello

End of class Demo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.19 ms | 1399 KiB | 15 Q