3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(winePacking(33)); var_dump(winePacking(48)); var_dump(winePacking(26)); var_dump(winePacking(35)); var_dump(winePacking(61)); var_dump(winePacking(21)); var_dump(winePacking(87)); function winePacking(int $bottles): bool { return ($bottles % 6 == 0 || ($bottles % 21) % 3 == 0); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bTQHe
function name:  (null)
number of ops:  43
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL_BY_NAME                                           'winePacking'
          2        SEND_VAL_EX                                                  33
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                                     
    4     6        INIT_FCALL                                                   'var_dump'
          7        INIT_FCALL_BY_NAME                                           'winePacking'
          8        SEND_VAL_EX                                                  48
          9        DO_FCALL                                          0  $2      
         10        SEND_VAR                                                     $2
         11        DO_ICALL                                                     
    5    12        INIT_FCALL                                                   'var_dump'
         13        INIT_FCALL_BY_NAME                                           'winePacking'
         14        SEND_VAL_EX                                                  26
         15        DO_FCALL                                          0  $4      
         16        SEND_VAR                                                     $4
         17        DO_ICALL                                                     
    6    18        INIT_FCALL                                                   'var_dump'
         19        INIT_FCALL_BY_NAME                                           'winePacking'
         20        SEND_VAL_EX                                                  35
         21        DO_FCALL                                          0  $6      
         22        SEND_VAR                                                     $6
         23        DO_ICALL                                                     
    7    24        INIT_FCALL                                                   'var_dump'
         25        INIT_FCALL_BY_NAME                                           'winePacking'
         26        SEND_VAL_EX                                                  61
         27        DO_FCALL                                          0  $8      
         28        SEND_VAR                                                     $8
         29        DO_ICALL                                                     
    8    30        INIT_FCALL                                                   'var_dump'
         31        INIT_FCALL_BY_NAME                                           'winePacking'
         32        SEND_VAL_EX                                                  21
         33        DO_FCALL                                          0  $10     
         34        SEND_VAR                                                     $10
         35        DO_ICALL                                                     
    9    36        INIT_FCALL                                                   'var_dump'
         37        INIT_FCALL_BY_NAME                                           'winePacking'
         38        SEND_VAL_EX                                                  87
         39        DO_FCALL                                          0  $12     
         40        SEND_VAR                                                     $12
         41        DO_ICALL                                                     
   13    42      > RETURN                                                       1

Function winepacking:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/bTQHe
function name:  winePacking
number of ops:  12
compiled vars:  !0 = $bottles
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
   12     1        MOD                                                  ~1      !0, 6
          2        IS_EQUAL                                             ~2      ~1, 0
          3      > JMPNZ_EX                                             ~2      ~2, ->8
          4    >   MOD                                                  ~3      !0, 21
          5        MOD                                                  ~4      ~3, 3
          6        IS_EQUAL                                             ~5      ~4, 0
          7        BOOL                                                 ~2      ~5
          8    >   VERIFY_RETURN_TYPE                                           ~2
          9      > RETURN                                                       ~2
   13    10*       VERIFY_RETURN_TYPE                                           
         11*     > RETURN                                                       null

End of function winepacking

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.34 ms | 2238 KiB | 14 Q