3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { static $staticValue = test2(); return $staticValue; } function test2() { return array(); } print_r(test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vRaNK
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'test'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vRaNK
function name:  test
number of ops:  6
compiled vars:  !0 = $staticValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ZEND_BIND_INIT_STATIC_OR_JMP                             !0
          1        INIT_FCALL_BY_NAME                                       'test2'
          2        DO_FCALL                                      0  $1      
          3        BIND_STATIC                                              !0, $1
    7     4      > RETURN                                                   !0
    8     5*     > RETURN                                                   null

End of function test

Function test2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vRaNK
function name:  test2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   <array>
   13     1*     > RETURN                                                   null

End of function test2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.51 ms | 999 KiB | 15 Q