3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $data = "\xe2\x99\xa5"; mb_convert_encoding($data,'8bit'); $data = mb_ereg_replace("heart","\u2665\u2665",$data); var_dump($data); echo $data;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YI3l9
function name:  (null)
number of ops:  19
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, '%E2%99%A5'
    4     4        INIT_FCALL                                               'mb_convert_encoding'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '8bit'
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'mb_ereg_replace'
          9        SEND_VAL                                                 'heart'
         10        SEND_VAL                                                 '%5Cu2665%5Cu2665'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        ASSIGN                                                   !0, $4
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    8    17        ECHO                                                     !0
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.81 ms | 1394 KiB | 21 Q