3v4l.org

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

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

End of function __construct

Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1D9gj
function name:  sayHello
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                      ~0      'name'
          1        CONCAT                                           ~1      'Hello+', ~0
          2      > RETURN                                                   ~1
   11     3*     > RETURN                                                   null

End of function sayhello

End of class HelloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.13 ms | 1394 KiB | 13 Q