3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = "/img/"; $file = "photo.jpg"; $width = "300"; $height = "250"; $x = "<span class=\"showthis\" style=\"background-image: url($path$file); width: $width px; height: $height px\"></span>"; var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O9hqG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $path, !1 = $file, !2 = $width, !3 = $height, !4 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fimg%2F'
    3     1        ASSIGN                                                   !1, 'photo.jpg'
    4     2        ASSIGN                                                   !2, '300'
    5     3        ASSIGN                                                   !3, '250'
    6     4        ROPE_INIT                                     8  ~10     '%3Cspan+class%3D%22showthis%22+style%3D%22background-image%3A+url%28'
          5        ROPE_ADD                                      1  ~10     ~10, !0
          6        ROPE_ADD                                      2  ~10     ~10, !1
          7        ROPE_ADD                                      3  ~10     ~10, '%29%3B+width%3A+'
          8        ROPE_ADD                                      4  ~10     ~10, !2
          9        ROPE_ADD                                      5  ~10     ~10, '+px%3B+height%3A+'
         10        ROPE_ADD                                      6  ~10     ~10, !3
         11        ROPE_END                                      7  ~9      ~10, '+px%22%3E%3C%2Fspan%3E'
         12        ASSIGN                                                   !4, ~9
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.54 ms | 1394 KiB | 15 Q