3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "ˈdɪk ʃəˌnɛr i"; $chrArray = preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY); for($i = 0 ; $i < count($chrArray) ; $i++) { if($chrArray[$i] == 'ˈ' || $chrArray[$i] == 'ˌ') $chrArray[$i] = '_'; } $output = join($chrArray, ""); echo $output;
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 = 47) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 10
Branch analysis from position: 23
Branch analysis from position: 10
Branch analysis from position: 19
Branch analysis from position: 16
filename:       /in/WrnGM
function name:  (null)
number of ops:  30
compiled vars:  !0 = $str, !1 = $chrArray, !2 = $i, !3 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%CB%88d%C9%AAk+%CA%83%C9%99%CB%8Cn%C9%9Br+i'
    3     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                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->20
    6    10    >   FETCH_DIM_R                                      ~8      !1, !2
         11        IS_EQUAL                                         ~9      ~8, '%CB%88'
         12      > JMPNZ_EX                                         ~9      ~9, ->16
         13    >   FETCH_DIM_R                                      ~10     !1, !2
         14        IS_EQUAL                                         ~11     ~10, '%CB%8C'
         15        BOOL                                             ~9      ~11
         16    > > JMPZ                                                     ~9, ->19
         17    >   ASSIGN_DIM                                               !1, !2
         18        OP_DATA                                                  '_'
    5    19    >   PRE_INC                                                  !2
         20    >   COUNT                                            ~14     !1
         21        IS_SMALLER                                               !2, ~14
         22      > JMPNZ                                                    ~15, ->10
    9    23    >   INIT_FCALL                                               'join'
         24        SEND_VAR                                                 !1
         25        SEND_VAL                                                 ''
         26        DO_ICALL                                         $16     
         27        ASSIGN                                                   !3, $16
   10    28        ECHO                                                     !3
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.09 ms | 1396 KiB | 17 Q