3v4l.org

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

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eVpVU
function name:  f
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          4  ~3      1
          1        ASSIGN                                                   !0, ~3
    5     2        CAST                                          4  ~5      2
          3        ASSIGN                                                   !1, ~5
    6     4        BW_AND                                           ~7      !0, !1
          5        ASSIGN                                                   !2, ~7
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   10    15        BW_AND                                           ~12     !0, !1
         16        INIT_ARRAY                                       ~13     ~12
         17        ADD_ARRAY_ELEMENT                                ~13     !2
         18      > RETURN                                                   ~13
   11    19*     > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.99 ms | 942 KiB | 17 Q