3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test1($unset = false) { static $i = 'I don\'t get used.'; echo $i; static $i = 'I get used.'; } test1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D9W5a
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'test1'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function test1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D9W5a
function name:  test1
number of ops:  5
compiled vars:  !0 = $unset, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      <false>
    4     1        BIND_STATIC                                              !1
    6     2        ECHO                                                     !1
    8     3        BIND_STATIC                                              !1
    9     4      > RETURN                                                   null

End of function test1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.99 ms | 1397 KiB | 16 Q