3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stat_func($name) { static $q; $q = $name; return $q; } echo stat_func('franz'); echo stat_func('joseph');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JrTeC
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'stat_func'
          1        SEND_VAL                                                 'franz'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   13     4        INIT_FCALL                                               'stat_func'
          5        SEND_VAL                                                 'joseph'
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
          8      > RETURN                                                   1

Function stat_func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JrTeC
function name:  stat_func
number of ops:  5
compiled vars:  !0 = $name, !1 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        BIND_STATIC                                              !1
    7     2        ASSIGN                                                   !1, !0
    8     3      > RETURN                                                   !1
    9     4*     > RETURN                                                   null

End of function stat_func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.97 ms | 1401 KiB | 15 Q