3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myCar { public $color = "silver"; public $make = "Mazda"; public $model = "protege5"; } $car = new myCar(); { echo "I drive a: ".$car -> color." ".$car -> make." " .$car ->model." " ; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hisKj
function name:  (null)
number of ops:  14
compiled vars:  !0 = $car
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'myCar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        FETCH_OBJ_R                                      ~4      !0, 'color'
          4        CONCAT                                           ~5      'I+drive+a%3A+', ~4
          5        CONCAT                                           ~6      ~5, '+'
          6        FETCH_OBJ_R                                      ~7      !0, 'make'
          7        CONCAT                                           ~8      ~6, ~7
          8        CONCAT                                           ~9      ~8, '+'
          9        FETCH_OBJ_R                                      ~10     !0, 'model'
         10        CONCAT                                           ~11     ~9, ~10
         11        CONCAT                                           ~12     ~11, '+'
         12        ECHO                                                     ~12
   17    13      > RETURN                                                   1

Class myCar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.06 ms | 1397 KiB | 13 Q