3v4l.org

run code in 300+ PHP versions simultaneously
<?php function strict() { $backtrace = debug_backtrace(0, 1); print_r($backtrace); } function myargs($a, $b) { strict('string', 'int'); echo 'Hello'; } myargs('hello', 4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HRD8X
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'myargs'
          1        SEND_VAL                                                 'hello'
          2        SEND_VAL                                                 4
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function strict:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HRD8X
function name:  strict
number of ops:  9
compiled vars:  !0 = $backtrace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 1
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    6     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8      > RETURN                                                   null

End of function strict

Function myargs:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HRD8X
function name:  myargs
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        INIT_FCALL                                               'strict'
          3        SEND_VAL                                                 'string'
          4        SEND_VAL                                                 'int'
          5        DO_FCALL                                      0          
   13     6        ECHO                                                     'Hello'
   14     7      > RETURN                                                   null

End of function myargs

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.59 ms | 1398 KiB | 19 Q