3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class Usuario{ public $nombre; public $edad; public $enfermedades = array(); } Class Diarrea{ public $color = "cafe"; public $consistencia = "liquida"; public $olor = "apestosa"; } $Ryan = new Usuario(); $Ryan->nombre = "Ryan"; $Ryan->edad = 19; $Ryan->enfermedades[] = new Diarrea(); echo "El usuario ".$Ryan->nombre." tiene ".$Ryan->edad." aƱos y tiene ".count($Ryan->enfermedades)." enfermedades, ".$Ryan->enfermedades[0]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PpuH9
function name:  (null)
number of ops:  27
compiled vars:  !0 = $Ryan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Usuario'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        ASSIGN_OBJ                                               !0, 'nombre'
          4        OP_DATA                                                  'Ryan'
   17     5        ASSIGN_OBJ                                               !0, 'edad'
          6        OP_DATA                                                  19
   18     7        NEW                                              $8      'Diarrea'
          8        DO_FCALL                                      0          
          9        FETCH_OBJ_W                                      $6      !0, 'enfermedades'
         10        ASSIGN_DIM                                               $6
         11        OP_DATA                                                  $8
   20    12        FETCH_OBJ_R                                      ~10     !0, 'nombre'
         13        CONCAT                                           ~11     'El+usuario+', ~10
         14        CONCAT                                           ~12     ~11, '+tiene+'
         15        FETCH_OBJ_R                                      ~13     !0, 'edad'
         16        CONCAT                                           ~14     ~12, ~13
         17        CONCAT                                           ~15     ~14, '+a%C3%B1os+y+tiene+'
         18        FETCH_OBJ_R                                      ~16     !0, 'enfermedades'
         19        COUNT                                            ~17     ~16
         20        CONCAT                                           ~18     ~15, ~17
         21        CONCAT                                           ~19     ~18, '+enfermedades%2C+'
         22        FETCH_OBJ_R                                      ~20     !0, 'enfermedades'
         23        FETCH_DIM_R                                      ~21     ~20, 0
         24        CONCAT                                           ~22     ~19, ~21
         25        ECHO                                                     ~22
   22    26      > RETURN                                                   1

Class Usuario: [no user functions]
Class Diarrea: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.9 ms | 1394 KiB | 13 Q