3v4l.org

run code in 300+ PHP versions simultaneously
d<?php class Car { public $color = ""; public $type; public function wheel (){ return "I have 4 wheels"; } public function tire (){ return 'size 17"'; } } $auto = new Car(); $auto->color = "red"; $auto->type = "sedan"; echo $auto->wheel(); echo ""; echo $auto->tire();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8einP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $auto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'd'
   16     1        NEW                                              $1      'Car'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   17     4        ASSIGN_OBJ                                               !0, 'color'
          5        OP_DATA                                                  'red'
   18     6        ASSIGN_OBJ                                               !0, 'type'
          7        OP_DATA                                                  'sedan'
   19     8        INIT_METHOD_CALL                                         !0, 'wheel'
          9        DO_FCALL                                      0  $6      
         10        ECHO                                                     $6
   20    11        ECHO                                                     ''
   21    12        INIT_METHOD_CALL                                         !0, 'tire'
         13        DO_FCALL                                      0  $7      
         14        ECHO                                                     $7
         15      > RETURN                                                   1

Class Car:
Function wheel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8einP
function name:  wheel
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   'I+have+4+wheels'
    9     1*     > RETURN                                                   null

End of function wheel

Function tire:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8einP
function name:  tire
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   'size+17%22'
   13     1*     > RETURN                                                   null

End of function tire

End of class Car.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.76 ms | 1394 KiB | 13 Q