3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '116157164122145147'; for($i=0; $i<strlen($x);$i+2){ print base_convert(chr(intval(substr($x,$i,$i+2))), 10, 8); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 3
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 3
Branch analysis from position: 24
Branch analysis from position: 3
filename:       /in/gCRq4
function name:  (null)
number of ops:  25
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                                                      ->21
    5     3    >   INIT_FCALL                                               'base_convert'
          4        INIT_FCALL                                               'chr'
          5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        ADD                                              ~4      !1, 2
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        CAST                                          4  ~6      $5
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        SEND_VAL                                                 10
         16        SEND_VAL                                                 8
         17        DO_ICALL                                         $8      
         18        ECHO                                                     $8
    4    19        ADD                                              ~9      !1, 2
         20        FREE                                                     ~9
         21    >   STRLEN                                           ~10     !0
         22        IS_SMALLER                                               !1, ~10
         23      > JMPNZ                                                    ~11, ->3
    6    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.28 ms | 1395 KiB | 19 Q