3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace_callback('/(ä)|(ö)|(ü)|(Ä)|(Ö)|(Ü)|(ß)/', function($matches){ foreach($matches as &$match){ switch($match){ case 'ü': $match = 'ue'; break; case 'ö': $match = 'oe'; break; case 'ä': $match = 'ae'; break; case 'Ü': $match = 'Ue'; break; case 'Ö': $match = 'Oe'; break; case 'Ä': $match = 'Ae'; break; case 'ß': $match = 'ss'; break; } } }, 'äöüÄÖÜß');
based on jsCZq
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/BkHFW
function name:  (null)
number of ops:  8
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'preg_replace_callback'
         1        SEND_VAL                                                 '%2F%28%C3%A4%29%7C%28%C3%B6%29%7C%28%C3%BC%29%7C%28%C3%84%29%7C%28%C3%96%29%7C%28%C3%9C%29%7C%28%C3%9F%29%2F'
         2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBkHFW0x7ff230d4b39b'
  29     3        SEND_VAL                                                 ~0
         4        SEND_VAL                                                 '%C3%A4%C3%B6%C3%BC%C3%84%C3%96%C3%9C%C3%9F'
         5        DO_ICALL                                         $1      
         6        ECHO                                                     $1
         7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FBkHFW0x7ff230d4b39b:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 2, Position 2 = 33
Branch analysis from position: 2
Jump found. Position 1 = 3, Position 2 = 33
Branch analysis from position: 3
Jump found. Position 1 = 5, Position 2 = 18
Branch analysis from position: 5
Jump found. Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
Jump found. Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
Jump found. Position 1 = 11, Position 2 = 24
Branch analysis from position: 11
Jump found. Position 1 = 13, Position 2 = 26
Branch analysis from position: 13
Jump found. Position 1 = 15, Position 2 = 28
Branch analysis from position: 15
Jump found. Position 1 = 17, Position 2 = 30
Branch analysis from position: 17
Jump found. Position 1 = 32
Branch analysis from position: 32
Jump found. Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 30
Jump found. Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 28
Jump found. Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 26
Jump found. Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 24
Jump found. Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 22
Jump found. Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 20
Jump found. Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 18
Jump found. Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 33
Jump found. Position 1 = -2
Branch analysis from position: 33
filename:       /in/BkHFW
function name:  {closure}
number of ops:  35
compiled vars:  !0 = $matches, !1 = $match
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
   4     1      > FE_RESET_RW                                      $2      !0, ->33
         2    > > FE_FETCH_RW                                              $2, !1, ->33
   6     3    >   CASE                                             ~3      !1, '%C3%BC'
         4      > JMPNZ                                                    ~3, ->18
   9     5    >   CASE                                             ~3      !1, '%C3%B6'
         6      > JMPNZ                                                    ~3, ->20
  12     7    >   CASE                                             ~3      !1, '%C3%A4'
         8      > JMPNZ                                                    ~3, ->22
  15     9    >   CASE                                             ~3      !1, '%C3%9C'
        10      > JMPNZ                                                    ~3, ->24
  18    11    >   CASE                                             ~3      !1, '%C3%96'
        12      > JMPNZ                                                    ~3, ->26
  21    13    >   CASE                                             ~3      !1, '%C3%84'
        14      > JMPNZ                                                    ~3, ->28
  24    15    >   CASE                                             ~3      !1, '%C3%9F'
        16      > JMPNZ                                                    ~3, ->30
        17    > > JMP                                                      ->32
   7    18    >   ASSIGN                                                   !1, 'ue'
   8    19      > JMP                                                      ->32
  10    20    >   ASSIGN                                                   !1, 'oe'
  11    21      > JMP                                                      ->32
  13    22    >   ASSIGN                                                   !1, 'ae'
  14    23      > JMP                                                      ->32
  16    24    >   ASSIGN                                                   !1, 'Ue'
  17    25      > JMP                                                      ->32
  19    26    >   ASSIGN                                                   !1, 'Oe'
  20    27      > JMP                                                      ->32
  22    28    >   ASSIGN                                                   !1, 'Ae'
  23    29      > JMP                                                      ->32
  25    30    >   ASSIGN                                                   !1, 'ss'
  26    31      > JMP                                                      ->32
        32    > > JMP                                                      ->2
        33    >   FE_FREE                                                  $2
  29    34      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBkHFW0x7ff230d4b39b

Generated using Vulcan Logic Dumper, using php 7.3.0