3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = 'Hey 🙇‍♂️ boy'; for ($i = 0, $len = grapheme_strlen($text); $i < $len; ++$i) { echo grapheme_substr($text, $i, 1) . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/PjjLB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $text, !1 = $i, !2 = $len
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Hey+%F0%9F%99%87%E2%80%8D%E2%99%82%EF%B8%8F+boy'
    4     1        ASSIGN                                                       !1, 0
          2        INIT_FCALL_BY_NAME                                           'grapheme_strlen'
          3        SEND_VAR_EX                                                  !0
          4        DO_FCALL                                          0  $5      
          5        ASSIGN                                                       !2, $5
          6      > JMP                                                          ->15
    5     7    >   INIT_FCALL_BY_NAME                                           'grapheme_substr'
          8        SEND_VAR_EX                                                  !0
          9        SEND_VAR_EX                                                  !1
         10        SEND_VAL_EX                                                  1
         11        DO_FCALL                                          0  $7      
         12        CONCAT                                               ~8      $7, '%0A'
         13        ECHO                                                         ~8
    4    14        PRE_INC                                                      !1
         15    >   IS_SMALLER                                                   !1, !2
         16      > JMPNZ                                                        ~10, ->7
    6    17    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.08 ms | 1583 KiB | 13 Q