3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '‖‖‖‖‖‖‖‖‖‖'; $text = preg_split('//u', $text, -1, PREG_SPLIT_NO_EMPTY); for ($idx = 0; $idx < count($text); $idx++) { echo $text[$idx] . ' ' . mb_ord($text[$idx]) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 10
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 10
Branch analysis from position: 23
Branch analysis from position: 10
filename:       /in/33Q6I
function name:  (null)
number of ops:  24
compiled vars:  !0 = $text, !1 = $idx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E2%80%96%E2%80%96%E2%80%96%E2%80%96%E2%80%96%E2%80%96%E2%80%96%E2%80%96%E2%80%96%E2%80%96'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%2Fu'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 -1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    6     8        ASSIGN                                                   !1, 0
          9      > JMP                                                      ->20
    7    10    >   FETCH_DIM_R                                      ~6      !0, !1
         11        CONCAT                                           ~7      ~6, '++'
         12        INIT_FCALL                                               'mb_ord'
         13        FETCH_DIM_R                                      ~8      !0, !1
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16        CONCAT                                           ~10     ~7, $9
         17        CONCAT                                           ~11     ~10, '%0A'
         18        ECHO                                                     ~11
    6    19        PRE_INC                                                  !1
         20    >   COUNT                                            ~13     !0
         21        IS_SMALLER                                               !1, ~13
         22      > JMPNZ                                                    ~14, ->10
    8    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.12 ms | 1395 KiB | 17 Q