3v4l.org

run code in 300+ PHP versions simultaneously
<?php function nothingspecial($dings) { $dinging = function ($ding) { $ding = preg_replace("/[^- ()\.\&,_'´`áàäçéèêñóòôöüæøåìíùúâêîôûÁÀÄÇÉÈÊÑÓÒÔÖÜÆØÅÌÍÙÚÂÊÎÔÛß@€:0-9a-zA-Z&+]/", " ", $ding ); $ding = stripslashes(trim(str_replace("'","´",$ding))); $funduz = array('&auml ','&ouml ','&uuml ','&Auml ','&Ouml ','&Uuml ','&szlig '); $ersetzuz = array('ä','ö','ü','Ä','Ö','Ü','ß'); $ding = str_replace($funduz, $ersetzuz, $ding); return $ding; }; return is_array($dings) ? array_map($dinging, $dings) : $dinging($dings); } var_dump(nothingspecial(['DópÂ\n'])); var_dump(nothingspecial('DópÂ\n'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P5KVY
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'nothingspecial'
          2        SEND_VAL                                                 <array>
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   25     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'nothingspecial'
          8        SEND_VAL                                                 'D%C3%B3p%C3%82%5Cn'
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function nothingspecial:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P5KVY
function name:  nothingspecial
number of ops:  17
compiled vars:  !0 = $dings, !1 = $dinging
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FP5KVY%3A4%240'
          2        ASSIGN                                                   !1, ~2
   19     3        TYPE_CHECK                                  128          !0
          4      > JMPZ                                                     ~4, ->11
   20     5    >   INIT_FCALL                                               'array_map'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        QM_ASSIGN                                        ~6      $5
         10      > JMP                                                      ->15
   21    11    >   INIT_DYNAMIC_CALL                                        !1
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $7      
         14        QM_ASSIGN                                        ~6      $7
         15    > > RETURN                                                   ~6
   22    16*     > RETURN                                                   null

End of function nothingspecial

Function %00%7Bclosure%7D%2Fin%2FP5KVY%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P5KVY
function name:  {closure}
number of ops:  29
compiled vars:  !0 = $ding, !1 = $funduz, !2 = $ersetzuz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5E-+%28%29%5C.%5C%26%2C_%27%C2%B4%60%C3%A1%C3%A0%C3%A4%C3%A7%C3%A9%C3%A8%C3%AA%C3%B1%C3%B3%C3%B2%C3%B4%C3%B6%C3%BC%C3%A6%C3%B8%C3%A5%C3%AC%C3%AD%C3%B9%C3%BA%C3%A2%C3%AA%C3%AE%C3%B4%C3%BB%C3%81%C3%80%C3%84%C3%87%C3%89%C3%88%C3%8A%C3%91%C3%93%C3%92%C3%94%C3%96%C3%9C%C3%86%C3%98%C3%85%C3%8C%C3%8D%C3%99%C3%9A%C3%82%C3%8A%C3%8E%C3%94%C3%9B%C3%9F%40%E2%82%AC%3A0-9a-zA-Z%26%2B%5D%2F'
    7     3        SEND_VAL                                                 '+'
    8     4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
    5     6        ASSIGN                                                   !0, $3
   11     7        INIT_FCALL                                               'stripslashes'
          8        INIT_FCALL                                               'trim'
          9        INIT_FCALL                                               'str_replace'
         10        SEND_VAL                                                 '%27'
         11        SEND_VAL                                                 '%C2%B4'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !0, $7
   12    19        ASSIGN                                                   !1, <array>
   13    20        ASSIGN                                                   !2, <array>
   14    21        INIT_FCALL                                               'str_replace'
         22        SEND_VAR                                                 !1
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $11     
         26        ASSIGN                                                   !0, $11
   16    27      > RETURN                                                   !0
   17    28*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FP5KVY%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.74 ms | 1403 KiB | 27 Q