3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dostuff() { echo 'mb_check_encoding: '; $ans = mb_check_encoding( "\xF4\x90\x80\x80", 'UTF-8' ); var_dump( $ans ); echo 'preg_match: '; $ans = preg_match( '//u', "\xF4\x90\x80\x80" ); var_dump( $ans ); } dostuff();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lXquL
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'dostuff'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function dostuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lXquL
function name:  dostuff
number of ops:  19
compiled vars:  !0 = $ans
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'mb_check_encoding%3A+'
    6     1        INIT_FCALL                                               'mb_check_encoding'
          2        SEND_VAL                                                 '%F4%90%80%80'
          3        SEND_VAL                                                 'UTF-8'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    9     9        ECHO                                                     'preg_match%3A+'
   10    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%2Fu'
         12        SEND_VAL                                                 '%F4%90%80%80'
         13        DO_ICALL                                         $4      
         14        ASSIGN                                                   !0, $4
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   13    18      > RETURN                                                   null

End of function dostuff

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.75 ms | 1398 KiB | 20 Q