3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); mb_convert_encoding('8bit'); $data = "\xe2\x99\xa5"; $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/P4GZ8
function name:  (null)
number of ops:  18
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        INIT_FCALL                                               'mb_convert_encoding'
          4        SEND_VAL                                                 '8bit'
          5        DO_ICALL                                                 
    4     6        ASSIGN                                                   !0, '%E2%99%A5'
    5     7        INIT_FCALL                                               'mb_ereg_replace'
          8        SEND_VAL                                                 'heart'
          9        SEND_VAL                                                 '%5Cu2665%5Cu2665'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    7    16        ECHO                                                     !0
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.76 ms | 1398 KiB | 21 Q