3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1($f) { fwrite($f, "1 called!\n"); } function f2(\resource $f) { fwrite($f, "2 called!\n"); } f1(STDOUT); f2(STDOUT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7BhNj
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'f1'
          1        FETCH_CONSTANT                                   ~0      'STDOUT'
          2        SEND_VAL                                                 ~0
          3        DO_FCALL                                      0          
   12     4        INIT_FCALL                                               'f2'
          5        FETCH_CONSTANT                                   ~2      'STDOUT'
          6        SEND_VAL                                                 ~2
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7BhNj
function name:  f1
number of ops:  6
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'fwrite'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '1+called%21%0A'
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function f1

Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7BhNj
function name:  f2
number of ops:  6
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'fwrite'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2+called%21%0A'
          4        DO_ICALL                                                 
    9     5      > RETURN                                                   null

End of function f2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.65 ms | 1398 KiB | 17 Q