3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = ''; $ints = [1, 4398574938597, 12345, 123]; foreach ($ints as $int) { $result .= mb_convert_encoding(chr($int),'UTF-8'); } echo strlen($result) . "\n"; for ($i = 0; $i < strlen($result); $i++) { echo "\n parsed: " . utf8_encode($result)[$i]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
Branch analysis from position: 19
Branch analysis from position: 13
filename:       /in/siK1P
function name:  (null)
number of ops:  30
compiled vars:  !0 = $result, !1 = $ints, !2 = $int, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    5     1        ASSIGN                                                   !1, <array>
    7     2      > FE_RESET_R                                       $6      !1, ->13
          3    > > FE_FETCH_R                                               $6, !2, ->13
    8     4    >   INIT_FCALL                                               'mb_convert_encoding'
          5        INIT_FCALL                                               'chr'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $7      
          8        SEND_VAR                                                 $7
          9        SEND_VAL                                                 'UTF-8'
         10        DO_ICALL                                         $8      
         11        ASSIGN_OP                                     8          !0, $8
    7    12      > JMP                                                      ->3
         13    >   FE_FREE                                                  $6
   11    14        STRLEN                                           ~10     !0
         15        CONCAT                                           ~11     ~10, '%0A'
         16        ECHO                                                     ~11
   13    17        ASSIGN                                                   !3, 0
         18      > JMP                                                      ->26
   14    19    >   INIT_FCALL                                               'utf8_encode'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $13     
         22        FETCH_DIM_R                                      ~14     $13, !3
         23        CONCAT                                           ~15     '%0A+parsed%3A+', ~14
         24        ECHO                                                     ~15
   13    25        PRE_INC                                                  !3
         26    >   STRLEN                                           ~17     !0
         27        IS_SMALLER                                               !3, ~17
         28      > JMPNZ                                                    ~18, ->19
   15    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.29 ms | 1396 KiB | 19 Q