3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regexEncoding = 'UTF-32'; mb_regex_encoding( $regexEncoding ); var_export( mb_ereg_replace( mb_convert_encoding( '(.+)', $regexEncoding ), mb_convert_encoding( "the \\1", $regexEncoding ), mb_convert_encoding( 'dog', $regexEncoding ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KqU5d
function name:  (null)
number of ops:  25
compiled vars:  !0 = $regexEncoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'UTF-32'
    4     1        INIT_FCALL                                               'mb_regex_encoding'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'var_export'
          5        INIT_FCALL                                               'mb_ereg_replace'
          6        INIT_FCALL                                               'mb_convert_encoding'
          7        SEND_VAL                                                 '%28.%2B%29'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        INIT_FCALL                                               'mb_convert_encoding'
         12        SEND_VAL                                                 'the+%5C1'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        INIT_FCALL                                               'mb_convert_encoding'
         17        SEND_VAL                                                 'dog'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.4 ms | 1386 KiB | 21 Q