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: $widthpx; 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/QS8k2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $path, !1 = $file, !2 = $width, !3 = $height, !4 = $x, !5 = $widthpx
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  ~11     '%3Cspan+class%3D%22showthis%22+style%3D%22background-image%3A+url%28'
          5        ROPE_ADD                                      1  ~11     ~11, !0
          6        ROPE_ADD                                      2  ~11     ~11, !1
          7        ROPE_ADD                                      3  ~11     ~11, '%29%3B+width%3A+'
          8        ROPE_ADD                                      4  ~11     ~11, !5
          9        ROPE_ADD                                      5  ~11     ~11, '%3B+height%3A+'
         10        ROPE_ADD                                      6  ~11     ~11, !3
         11        ROPE_END                                      7  ~10     ~11, '+px%22%3E%3C%2Fspan%3E'
         12        ASSIGN                                                   !4, ~10
    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:
140.19 ms | 1386 KiB | 15 Q