3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.23 ms | 1394 KiB | 15 Q