3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = $b = true; function onlyA() { return ! $a; } function onlyB() { return $b; } var_dump(onlyA());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XfZnN
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~2      !1, <true>
          1        ASSIGN                                                   !0, ~2
   12     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'onlya'
          4        DO_FCALL                                      0  $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function onlya:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XfZnN
function name:  onlyA
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BOOL_NOT                                         ~1      !0
          1      > RETURN                                                   ~1
    6     2*     > RETURN                                                   null

End of function onlya

Function onlyb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XfZnN
function name:  onlyB
number of ops:  2
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   !0
   10     1*     > RETURN                                                   null

End of function onlyb

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.59 ms | 1401 KiB | 16 Q