3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '116157164122145147'; for($i=0; $i<strlen($x);$i+2){ print base_convert(chr(int(substr($x,$i,$i+2)), 10, 8)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 3
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 3
Branch analysis from position: 26
Branch analysis from position: 3
filename:       /in/9PNUe
function name:  (null)
number of ops:  27
compiled vars:  !0 = $x, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '116157164122145147'
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->23
    5     3    >   INIT_FCALL                                               'base_convert'
          4        INIT_FCALL                                               'chr'
          5        INIT_FCALL_BY_NAME                                       'int'
          6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        ADD                                              ~4      !1, 2
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12        SEND_VAR_NO_REF_EX                                       $5
         13        DO_FCALL                                      0  $6      
         14        SEND_VAR                                                 $6
         15        SEND_VAL                                                 10
         16        SEND_VAL                                                 8
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                         $8      
         20        ECHO                                                     $8
    4    21        ADD                                              ~9      !1, 2
         22        FREE                                                     ~9
         23    >   STRLEN                                           ~10     !0
         24        IS_SMALLER                                               !1, ~10
         25      > JMPNZ                                                    ~11, ->3
    6    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.25 ms | 1400 KiB | 19 Q