3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cleanupString( $suchbegriff ) { if( in_array( substr( $suchbegriff, -1 ), array( ',', ';', ',', '.', ':', '#', '*' ) ) ) { $suchbegriff = substr( $suchbegriff, 0, -1 ); cleanupString( $suchbegriff ); } else { return $suchbegriff; }; } echo cleanupString( 'ehe, zeugnis ##*');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t6AZL
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'cleanupstring'
          1        SEND_VAL                                                 'ehe%2C+zeugnis+%23%23%2A'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function cleanupstring:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t6AZL
function name:  cleanupString
number of ops:  19
compiled vars:  !0 = $suchbegriff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 -1
          4        DO_ICALL                                         $1      
          5        IN_ARRAY                                                 $1, <array>
          6      > JMPZ                                                     ~2, ->17
    7     7    >   INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 -1
         11        DO_ICALL                                         $3      
         12        ASSIGN                                                   !0, $3
    8    13        INIT_FCALL_BY_NAME                                       'cleanupString'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0          
         16      > JMP                                                      ->18
   12    17    > > RETURN                                                   !0
   14    18    > > RETURN                                                   null

End of function cleanupstring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.19 ms | 1389 KiB | 16 Q