3v4l.org

run code in 300+ PHP versions simultaneously
<?php function some_method($id, $includeParam = 0, $include_param = 0) { return $includeParam OR $include_param; } var_dump( some_method(42, 1, 0), some_method(42, 0, 1), some_method(42, 1, 1), some_method(42, 1, 1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AaYic
function name:  (null)
number of ops:  27
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
   11    13        INIT_FCALL                                               'some_method'
         14        SEND_VAL                                                 42
         15        SEND_VAL                                                 1
         16        SEND_VAL                                                 1
         17        DO_FCALL                                      0  $2      
         18        SEND_VAR                                                 $2
   12    19        INIT_FCALL                                               'some_method'
         20        SEND_VAL                                                 42
         21        SEND_VAL                                                 1
         22        SEND_VAL                                                 1
         23        DO_FCALL                                      0  $3      
         24        SEND_VAR                                                 $3
         25        DO_ICALL                                                 
   13    26      > RETURN                                                   1

Function some_method:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/AaYic
function name:  some_method
number of ops:  7
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      > JMPNZ_EX                                         ~3      !1, ->5
          4    >   BOOL                                             ~3      !2
          5    > > RETURN                                                   ~3
    6     6*     > RETURN                                                   null

End of function some_method

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.97 ms | 1398 KiB | 19 Q