3v4l.org

run code in 300+ PHP versions simultaneously
<?php $app['additional_images']="https://www.google.com/images/srpr/logo11w.png"; $app['product_url']='<a href="http://www.example.com/product.html">The product</a>'; $temp_arr = explode(">",$app['product_url']); $reconstruct_link_opening_tag=$temp_arr[0].">"; $reconstruct_link_closing_tag="</a>"; // your code..... if (!empty($app['additional_images'])) echo'<span>'.$reconstruct_link_opening_tag.'<img src="'.$app['additional_images'].'">'.$reconstruct_link_closing_tag.'</span>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/sIDUl
function name:  (null)
number of ops:  26
compiled vars:  !0 = $app, !1 = $temp_arr, !2 = $reconstruct_link_opening_tag, !3 = $reconstruct_link_closing_tag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'additional_images'
          1        OP_DATA                                                  'https%3A%2F%2Fwww.google.com%2Fimages%2Fsrpr%2Flogo11w.png'
    4     2        ASSIGN_DIM                                               !0, 'product_url'
          3        OP_DATA                                                  '%3Ca+href%3D%22http%3A%2F%2Fwww.example.com%2Fproduct.html%22%3EThe+product%3C%2Fa%3E'
    6     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%3E'
          6        FETCH_DIM_R                                      ~6      !0, 'product_url'
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
    7    10        FETCH_DIM_R                                      ~9      !1, 0
         11        CONCAT                                           ~10     ~9, '%3E'
         12        ASSIGN                                                   !2, ~10
    8    13        ASSIGN                                                   !3, '%3C%2Fa%3E'
   14    14        ISSET_ISEMPTY_DIM_OBJ                         1  ~13     !0, 'additional_images'
         15        BOOL_NOT                                         ~14     ~13
         16      > JMPZ                                                     ~14, ->25
         17    >   CONCAT                                           ~15     '%3Cspan%3E', !2
         18        CONCAT                                           ~16     ~15, '%3Cimg+src%3D%22'
         19        FETCH_DIM_R                                      ~17     !0, 'additional_images'
         20        CONCAT                                           ~18     ~16, ~17
         21        CONCAT                                           ~19     ~18, '%22%3E'
         22        CONCAT                                           ~20     ~19, !3
         23        CONCAT                                           ~21     ~20, '%3C%2Fspan%3E'
         24        ECHO                                                     ~21
         25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.69 ms | 1395 KiB | 15 Q