3v4l.org

run code in 300+ PHP versions simultaneously
<?php function custom_function($value) { static $var = 0; $var += $value; echo "$var\n"; } custom_function(100); custom_function(200);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oj7Hd
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'custom_function'
          1        SEND_VAL                                                 100
          2        DO_FCALL                                      0          
   11     3        INIT_FCALL                                               'custom_function'
          4        SEND_VAL                                                 200
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function custom_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oj7Hd
function name:  custom_function
number of ops:  7
compiled vars:  !0 = $value, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        BIND_STATIC                                              !1
    6     2        ASSIGN_OP                                     1          !1, !0
    7     3        NOP                                                      
          4        FAST_CONCAT                                      ~3      !1, '%0A'
          5        ECHO                                                     ~3
    8     6      > RETURN                                                   null

End of function custom_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.91 ms | 1397 KiB | 15 Q