3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myobject { public $attr = 'test'; } $obj = new myobject(); $url = "https://aurl.com/{$obj->attr}&moreinfo=1"; echo "url: $url";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6hLTX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $obj, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'myobject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    6     3        ROPE_INIT                                     3  ~7      'https%3A%2F%2Faurl.com%2F'
          4        FETCH_OBJ_R                                      ~5      !0, 'attr'
          5        ROPE_ADD                                      1  ~7      ~7, ~5
          6        ROPE_END                                      2  ~6      ~7, '%26moreinfo%3D1'
          7        ASSIGN                                                   !1, ~6
    7     8        NOP                                                      
          9        FAST_CONCAT                                      ~10     'url%3A+', !1
         10        ECHO                                                     ~10
         11      > RETURN                                                   1

Class myobject: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.73 ms | 1384 KiB | 13 Q