3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "[♥]+"; $replacement = "love"; var_dump(mb_ereg_replace($pattern,$replacement,"I ♥ PHP"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1ciHJ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $pattern, !1 = $replacement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%E2%99%A5%5D%2B'
    3     1        ASSIGN                                                   !1, 'love'
    4     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'mb_ereg_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'I+%E2%99%A5+PHP'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.87 ms | 1394 KiB | 17 Q