3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = '10155674128355111'; if (strlen($v) > 9) { echo (int)((int)substr($v, 0, 9) % 6 . substr($v, 9)) % 6; } else { echo (int)$v % 6; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HnOVi
function name:  (null)
number of ops:  24
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '10155674128355111'
    5     1        STRLEN                                           ~2      !0
          2        IS_SMALLER                                               9, ~2
          3      > JMPZ                                                     ~3, ->20
    7     4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 9
          8        DO_ICALL                                         $4      
          9        CAST                                          4  ~5      $4
         10        MOD                                              ~6      ~5, 6
         11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 9
         14        DO_ICALL                                         $7      
         15        CONCAT                                           ~8      ~6, $7
         16        CAST                                          4  ~9      ~8
         17        MOD                                              ~10     ~9, 6
         18        ECHO                                                     ~10
         19      > JMP                                                      ->23
   11    20    >   CAST                                          4  ~11     !0
         21        MOD                                              ~12     ~11, 6
         22        ECHO                                                     ~12
   12    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.88 ms | 1395 KiB | 15 Q