3v4l.org

run code in 500+ PHP versions simultaneously
<?php function filter_alphanum($string) { $characters = str_split($string); $alphaNumeric = array_filter($characters,"ctype_alnum"); return join($alphaNumeric); } echo filter_alphanum("a!bc!#123 more and more");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqLVZ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'filter_alphanum'
          1        SEND_VAL                                                     'a%21bc%21%23123+more+and+more'
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
          4      > RETURN                                                       1

Function filter_alphanum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqLVZ
function name:  filter_alphanum
number of ops:  15
compiled vars:  !0 = $string, !1 = $characters, !2 = $alphaNumeric
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'str_split'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    5     5        INIT_FCALL                                                   'array_filter'
          6        SEND_VAR                                                     !1
          7        SEND_VAL                                                     'ctype_alnum'
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !2, $5
    6    10        INIT_FCALL                                                   'join'
         11        SEND_VAR                                                     !2
         12        DO_ICALL                                             $7      
         13      > RETURN                                                       $7
    7    14*     > RETURN                                                       null

End of function filter_alphanum

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.2 ms | 3305 KiB | 17 Q