3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = ''; $ints = [1, 4398574938597, 12345, 123]; foreach ($ints as $int) { $result .= chr($int); } 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 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 15
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 15
Branch analysis from position: 25
Branch analysis from position: 15
Branch analysis from position: 9
filename:       /in/0Esvk
function name:  (null)
number of ops:  26
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, ->9
          3    > > FE_FETCH_R                                               $6, !2, ->9
    8     4    >   INIT_FCALL                                               'chr'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $7      
          7        ASSIGN_OP                                     8          !0, $7
    7     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $6
   11    10        STRLEN                                           ~9      !0
         11        CONCAT                                           ~10     ~9, '%0A'
         12        ECHO                                                     ~10
   13    13        ASSIGN                                                   !3, 0
         14      > JMP                                                      ->22
   14    15    >   INIT_FCALL                                               'utf8_encode'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $12     
         18        FETCH_DIM_R                                      ~13     $12, !3
         19        CONCAT                                           ~14     '%0A+parsed%3A+', ~13
         20        ECHO                                                     ~14
   13    21        PRE_INC                                                  !3
         22    >   STRLEN                                           ~16     !0
         23        IS_SMALLER                                               !3, ~16
         24      > JMPNZ                                                    ~17, ->15
   15    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.17 ms | 941 KiB | 18 Q