3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Human { protected $name; protected $surname; public function __construct($name, $surname) { $this->name = $name; $this->surname = $surname; } public function greet() { echo 'Hello World!'; } } $leo = new Human('Leo','Gumbo'); $leo->greet();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZlReJ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $leo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'Human'
          1        SEND_VAL_EX                                              'Leo'
          2        SEND_VAL_EX                                              'Gumbo'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   22     5        INIT_METHOD_CALL                                         !0, 'greet'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Human:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZlReJ
function name:  __construct
number of ops:  7
compiled vars:  !0 = $name, !1 = $surname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN_OBJ                                               'name'
          3        OP_DATA                                                  !0
   11     4        ASSIGN_OBJ                                               'surname'
          5        OP_DATA                                                  !1
   12     6      > RETURN                                                   null

End of function __construct

Function greet:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZlReJ
function name:  greet
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'Hello+World%21'
   17     1      > RETURN                                                   null

End of function greet

End of class Human.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.32 ms | 1385 KiB | 13 Q