3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ShopProduct { public $title = "default product"; public $producerMainName = "main name"; public $producerFirstName = "first name"; public $price = 0; } $product1 = new ShopProduct(); $product2 = new ShopProduct(); $product1->producerMainName = "Moh"; $product1->producerFirstName = "George"; print "author : {$product1->producerFirstName} " ."{$product1->producerMainName}\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lqcfj
function name:  (null)
number of ops:  20
compiled vars:  !0 = $product1, !1 = $product2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'ShopProduct'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        NEW                                              $5      'ShopProduct'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   14     6        ASSIGN_OBJ                                               !0, 'producerMainName'
          7        OP_DATA                                                  'Moh'
   15     8        ASSIGN_OBJ                                               !0, 'producerFirstName'
          9        OP_DATA                                                  'George'
   17    10        ROPE_INIT                                     3  ~12     'author+%3A+'
         11        FETCH_OBJ_R                                      ~10     !0, 'producerFirstName'
         12        ROPE_ADD                                      1  ~12     ~12, ~10
         13        ROPE_END                                      2  ~11     ~12, '+'
   18    14        FETCH_OBJ_R                                      ~14     !0, 'producerMainName'
         15        NOP                                                      
         16        FAST_CONCAT                                      ~15     ~14, '%0A'
         17        CONCAT                                           ~16     ~11, ~15
         18        ECHO                                                     ~16
         19      > RETURN                                                   1

Class ShopProduct: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.48 ms | 1394 KiB | 13 Q