3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_ereg_match("♥", "I ♥ PHP")); // should return true var_dump(mb_ereg_match("♥", "♥ PHP")); $pattern = "[♥]+"; $replacement = ":)"; 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/vpqHu
function name:  (null)
number of ops:  25
compiled vars:  !0 = $pattern, !1 = $replacement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'mb_ereg_match'
          2        SEND_VAL                                                 '%E2%99%A5'
          3        SEND_VAL                                                 'I+%E2%99%A5+PHP'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    3     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'mb_ereg_match'
          9        SEND_VAL                                                 '%E2%99%A5'
         10        SEND_VAL                                                 '%E2%99%A5+PHP'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    4    14        ASSIGN                                                   !0, '%5B%E2%99%A5%5D%2B'
    5    15        ASSIGN                                                   !1, '%3A%29'
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'mb_ereg_replace'
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 'I+%E2%99%A5+PHP'
         21        DO_ICALL                                         $8      
         22        SEND_VAR                                                 $8
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.63 ms | 1395 KiB | 19 Q