3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.9 ms | 1394 KiB | 15 Q