3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '‖‖‖‖‖‖‖‖‖‖'; $text = preg_split('//u',$str, -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/6idsk
function name:  (null)
number of ops:  21
compiled vars:  !0 = $text, !1 = $str, !2 = $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                                                 !1
          4        SEND_VAL                                                 -1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    6     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->17
    7    10    >   INIT_FCALL                                               'ord'
         11        FETCH_DIM_R                                      ~7      !0, !2
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      $8, '%0A'
         15        ECHO                                                     ~9
    6    16        PRE_INC                                                  !2
         17    >   COUNT                                            ~11     !0
         18        IS_SMALLER                                               !2, ~11
         19      > JMPNZ                                                    ~12, ->10
    8    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.97 ms | 1395 KiB | 17 Q