3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. Position 1 = 21
Branch analysis from position: 21
Jump found. Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
Jump found. Position 1 = -2
Branch analysis from position: 10
Jump found. Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
Jump found. Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Jump found. Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
Branch analysis from position: 10
Branch analysis from position: 19
Branch analysis from position: 16
filename:       /in/WrnGM
function name:  (null)
number of ops:  33
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                                                      ->21
   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    >   POST_INC                                         ~13     !2
        20        FREE                                                     ~13
        21    >   INIT_FCALL                                               'count'
        22        SEND_VAR                                                 !1
        23        DO_ICALL                                         $14     
        24        IS_SMALLER                                       ~15     !2, $14
        25      > JMPNZ                                                    ~15, ->10
   9    26    >   INIT_FCALL                                               'join'
        27        SEND_VAR                                                 !1
        28        SEND_VAL                                                 ''
        29        DO_ICALL                                         $16     
        30        ASSIGN                                                   !3, $16
  10    31        ECHO                                                     !3
        32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0