3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '<?php $x = \'*\'; echo str_replace(chr(0x2A), addslashes($x), $x); ?>'; echo str_replace(chr(0x2A), addslashes($x), $x); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pUTN5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A%24x+%3D+%27%2A%27%3B%0Aecho+str_replace%28chr%280x2A%29%2C+addslashes%28%24x%29%2C+%24x%29%3B%0A%3F%3E'
    6     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2A'
          3        INIT_FCALL                                               'addslashes'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    7    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1394 KiB | 17 Q