3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set( 'default_charset', 'UTF-8' ); mb_internal_encoding("ISO-8859-1"); var_dump(preg_replace( '/\s/', '', "\xc2\xa0" )); echo shell_exec("locale -a");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kUTUF
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'default_charset'
          2        SEND_VAL                                                 'UTF-8'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'mb_internal_encoding'
          5        SEND_VAL                                                 'ISO-8859-1'
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%5Cs%2F'
         10        SEND_VAL                                                 ''
         11        SEND_VAL                                                 '%C2%A0'
         12        DO_ICALL                                         $2      
         13        SEND_VAR                                                 $2
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'shell_exec'
         16        SEND_VAL                                                 'locale+-a'
         17        DO_ICALL                                         $4      
         18        ECHO                                                     $4
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.77 ms | 1399 KiB | 23 Q