3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class Usuario{ public $nombre; public $edad; } $Ryan = new Usuario(); $Ryan->nombre = "Ryan"; $Ryan->edad = 19; echo "El usuario ".$Ryan->nombre." tiene ".$Ryan->edad; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kXm9U
function name:  (null)
number of ops:  14
compiled vars:  !0 = $Ryan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'Usuario'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        ASSIGN_OBJ                                               !0, 'nombre'
          4        OP_DATA                                                  'Ryan'
   10     5        ASSIGN_OBJ                                               !0, 'edad'
          6        OP_DATA                                                  19
   12     7        FETCH_OBJ_R                                      ~6      !0, 'nombre'
          8        CONCAT                                           ~7      'El+usuario+', ~6
          9        CONCAT                                           ~8      ~7, '+tiene+'
         10        FETCH_OBJ_R                                      ~9      !0, 'edad'
         11        CONCAT                                           ~10     ~8, ~9
         12        ECHO                                                     ~10
   14    13      > RETURN                                                   1

Class Usuario: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.52 ms | 1393 KiB | 13 Q