3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = $b = true; function onlyA($a) { $a = $a; return ! $a; } function onlyB($b) { $b = $b; return ! $b; } var_dump(onlyA());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z4Kpi
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
   14     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/Z4Kpi
function name:  onlyA
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !0, !0
    6     2        BOOL_NOT                                         ~2      !0
          3      > RETURN                                                   ~2
    7     4*     > 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/Z4Kpi
function name:  onlyB
number of ops:  5
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        ASSIGN                                                   !0, !0
   11     2        BOOL_NOT                                         ~2      !0
          3      > RETURN                                                   ~2
   12     4*     > RETURN                                                   null

End of function onlyb

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.1 ms | 1398 KiB | 16 Q