3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($unset = false) { echo $bar; static $bar = 'bar'; echo $bar; if ($unset) { unset($bar); } } foo(); foo(); foo(true); foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YnvCm
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
   16     2        INIT_FCALL                                               'foo'
          3        DO_FCALL                                      0          
   17     4        INIT_FCALL                                               'foo'
          5        SEND_VAL                                                 <true>
          6        DO_FCALL                                      0          
   18     7        INIT_FCALL                                               'foo'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1397 KiB | 17 Q