3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fn = 'Liz & Noël'; $ln = 'John-Evan’s 2nd'; function process( $str ) { $str = iconv('utf-8', 'us-ascii//TRANSLIT', $str); $str = strtolower($str); return preg_replace('~[^A-Za-z]+~u', '', $str); } echo process($fn) . '-' . process($ln);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mBMZl
function name:  (null)
number of ops:  12
compiled vars:  !0 = $fn, !1 = $ln
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Liz+%26+No%C3%ABl'
    4     1        ASSIGN                                                       !1, 'John-Evan%E2%80%99s+2nd'
   13     2        INIT_FCALL                                                   'process'
          3        SEND_VAR                                                     !0
          4        DO_FCALL                                          0  $4      
          5        CONCAT                                               ~5      $4, '-'
          6        INIT_FCALL                                                   'process'
          7        SEND_VAR                                                     !1
          8        DO_FCALL                                          0  $6      
          9        CONCAT                                               ~7      ~5, $6
         10        ECHO                                                         ~7
         11      > RETURN                                                       1

Function process:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mBMZl
function name:  process
number of ops:  15
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
    8     1        INIT_FCALL_BY_NAME                                           'iconv'
          2        SEND_VAL_EX                                                  'utf-8'
          3        SEND_VAL_EX                                                  'us-ascii%2F%2FTRANSLIT'
          4        SEND_VAR_EX                                                  !0
          5        DO_FCALL                                          0  $1      
          6        ASSIGN                                                       !0, $1
    9     7        INIT_FCALL                                                   'strtolower'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $3      
         10        ASSIGN                                                       !0, $3
   10    11        FRAMELESS_ICALL_3                preg_replace        ~5      '%7E%5B%5EA-Za-z%5D%2B%7Eu', ''
         12        OP_DATA                                                      !0
         13      > RETURN                                                       ~5
   11    14*     > RETURN                                                       null

End of function process

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.53 ms | 1714 KiB | 16 Q