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 ord($text[$idx]) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
Branch analysis from position: 10
filename:       /in/losDm
function name:  (null)
number of ops:  21
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                                                      ->17
    7    10    >   INIT_FCALL                                               'ord'
         11        FETCH_DIM_R                                      ~6      !0, !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        CONCAT                                           ~8      $7, '%0A'
         15        ECHO                                                     ~8
    6    16        PRE_INC                                                  !1
         17    >   COUNT                                            ~10     !0
         18        IS_SMALLER                                               !1, ~10
         19      > JMPNZ                                                    ~11, ->10
    8    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.33 ms | 1395 KiB | 17 Q