3v4l.org

run code in 300+ PHP versions simultaneously
<?php function some_method($id, $includeParam = 0, $include_param = 0) { return $includeParam & $include_param; } var_dump( some_method(42, 1, 0), some_method(42, 0, 1), );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/76k4g
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
    9     1        INIT_FCALL                                               'some_method'
          2        SEND_VAL                                                 42
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 0
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
   10     7        INIT_FCALL                                               'some_method'
          8        SEND_VAL                                                 42
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 1
         11        DO_FCALL                                      0  $1      
         12        SEND_VAR                                                 $1
         13        DO_ICALL                                                 
   11    14      > RETURN                                                   1

Function some_method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/76k4g
function name:  some_method
number of ops:  6
compiled vars:  !0 = $id, !1 = $includeParam, !2 = $include_param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
          2        RECV_INIT                                        !2      0
    5     3        BW_AND                                           ~3      !1, !2
          4      > RETURN                                                   ~3
    6     5*     > RETURN                                                   null

End of function some_method

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.22 ms | 1397 KiB | 17 Q