3v4l.org

run code in 500+ PHP versions simultaneously
<?php $profile_image_url = str_replace(" ", "%20", 'https://www.example.com/images/cropped (1).jpg'); $output = ""; $output .= "style='background:url('https://www.example.com/images/" . $profile_image_url . "')no-repeat;'"; echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b9e4C
function name:  (null)
number of ops:  9
compiled vars:  !0 = $profile_image_url, !1 = $output
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_3                str_replace         ~2      '+', '%2520'
          1        OP_DATA                                                      'https%3A%2F%2Fwww.example.com%2Fimages%2Fcropped+%281%29.jpg'
          2        ASSIGN                                                       !0, ~2
    4     3        ASSIGN                                                       !1, ''
    5     4        CONCAT                                               ~5      'style%3D%27background%3Aurl%28%27https%3A%2F%2Fwww.example.com%2Fimages%2F', !0
          5        CONCAT                                               ~6      ~5, '%27%29no-repeat%3B%27'
          6        ASSIGN_OP                                         8          !1, ~6
    7     7        ECHO                                                         !1
    8     8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.42 ms | 2066 KiB | 13 Q