3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function t($str) { echo "\nHi: $str"; var_dump(debug_backtrace()); } } (new a)->t('bla');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5KRA9
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'a'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 't'
          3        SEND_VAL_EX                                              'bla'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class a:
Function t:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5KRA9
function name:  t
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      '%0AHi%3A+', !0
          3        ECHO                                                     ~1
    8     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'debug_backtrace'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    9     9      > RETURN                                                   null

End of function t

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.57 ms | 1426 KiB | 15 Q