3v4l.org

run code in 300+ PHP versions simultaneously
<?php $category = new stdClass(); $category->category_name = 'T-Shirts'; $product = new stdClass(); $product->product_name = 'PTB Keep Calm'; $product->product_desc = 'PTB Keep Calm This creative design is printed&nbsp;&nbsp;on a&nbsp;Premium Fitted CVC Crew Tee&nbsp; Features:60% combed rin...'; $decoded = strip_tags(html_entity_decode("Buy " . $category->category_name." | ".$product->product_name." | ".$product->product_desc)); echo $decoded; echo "\n---\n"; echo preg_replace('~\s+~u', ' ', $decoded);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/75l2o
function name:  (null)
number of ops:  36
compiled vars:  !0 = $category, !1 = $product, !2 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN_OBJ                                               !0, 'category_name'
          4        OP_DATA                                                  'T-Shirts'
    4     5        NEW                                              $7      'stdClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    5     8        ASSIGN_OBJ                                               !1, 'product_name'
          9        OP_DATA                                                  'PTB+Keep+Calm'
    6    10        ASSIGN_OBJ                                               !1, 'product_desc'
         11        OP_DATA                                                  'PTB+Keep+Calm+This+creative+design+is+printed%26nbsp%3B%26nbsp%3Bon+a%26nbsp%3BPremium+Fitted+CVC+Crew+Tee%26nbsp%3B+Features%3A60%25+combed+rin...'
    8    12        INIT_FCALL                                               'strip_tags'
         13        INIT_FCALL                                               'html_entity_decode'
         14        FETCH_OBJ_R                                      ~12     !0, 'category_name'
         15        CONCAT                                           ~13     'Buy+', ~12
         16        CONCAT                                           ~14     ~13, '+%7C+'
         17        FETCH_OBJ_R                                      ~15     !1, 'product_name'
         18        CONCAT                                           ~16     ~14, ~15
         19        CONCAT                                           ~17     ~16, '+%7C+'
         20        FETCH_OBJ_R                                      ~18     !1, 'product_desc'
         21        CONCAT                                           ~19     ~17, ~18
         22        SEND_VAL                                                 ~19
         23        DO_ICALL                                         $20     
         24        SEND_VAR                                                 $20
         25        DO_ICALL                                         $21     
         26        ASSIGN                                                   !2, $21
    9    27        ECHO                                                     !2
   11    28        ECHO                                                     '%0A---%0A'
   13    29        INIT_FCALL                                               'preg_replace'
         30        SEND_VAL                                                 '%7E%5Cs%2B%7Eu'
         31        SEND_VAL                                                 '+'
         32        SEND_VAR                                                 !2
         33        DO_ICALL                                         $23     
         34        ECHO                                                     $23
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 1013 KiB | 16 Q