3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User{ function __construct($name = 'empty'){ $this->name = $name; }} $user = new User('test'); var_dump($user, new $user);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Fomg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'User'
          1        SEND_VAL_EX                                              'test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    7     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        FETCH_CLASS                                   0  $4      !0
          7        NEW                                              $5      $4
          8        DO_FCALL                                      0          
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

End of function __construct

End of class User.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.77 ms | 942 KiB | 16 Q