3v4l.org

run code in 300+ PHP versions simultaneously
<?php $examples = array( $class = "am\xC3\xA9lie", $class = "am\x65\xCC\x81lie", ); foreach ($examples as $class) { echo $class ." => "; $class = preg_replace('![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s', '', $class); echo $class ."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/o3U6b
function name:  (null)
number of ops:  20
compiled vars:  !0 = $examples, !1 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                           ~2      !1, 'am%C3%A9lie'
          1        INIT_ARRAY                                       ~3      ~2
    5     2        ASSIGN                                           ~4      !1, 'ame%CC%81lie'
          3        ADD_ARRAY_ELEMENT                                ~3      ~4
    3     4        ASSIGN                                                   !0, ~3
    8     5      > FE_RESET_R                                       $6      !0, ->18
          6    > > FE_FETCH_R                                               $6, !1, ->18
   10     7    >   CONCAT                                           ~7      !1, '+%3D%3E+'
          8        ECHO                                                     ~7
   12     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%21%5B%5Eabcdefghijklmnopqrstuvwxyz0-9-_%5D%2B%21s'
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
   14    15        CONCAT                                           ~10     !1, '%0A'
         16        ECHO                                                     ~10
    8    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $6
   16    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.14 ms | 1395 KiB | 15 Q