3v4l.org

run code in 300+ PHP versions simultaneously
<?php function iter() { static $x = 200; var_dump($x); static $x = 'hej'; var_dump($x); } iter(); iter();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9rahv
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'iter'
          1        DO_FCALL                                      0          
   11     2        INIT_FCALL                                               'iter'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function iter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1397 KiB | 17 Q