3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Kate O'Henry-Smith"; $arrDelChars = [' ','\'','-']; if ( ctype_alpha( str_replace( $arrDelChars, '', $name ) ) === false ) { exit( "Name must contain letters and spaces only\n" ); } print_r($name);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WBUuh
function name:  (null)
number of ops:  17
compiled vars:  !0 = $name, !1 = $arrDelChars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Kate+O%27Henry-Smith'
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'ctype_alpha'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        TYPE_CHECK                                    4          $5
         11      > JMPZ                                                     ~6, ->13
    7    12    > > EXIT                                                     'Name+must+contain+letters+and+spaces+only%0A'
   10    13    >   INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.62 ms | 1006 KiB | 16 Q