3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.34 ms | 1394 KiB | 15 Q