3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public $username; public $email; public function __construct($username) { $this->username = $username; } public function __call($method, $args) { echo 'De method User::'.$method.' is niet gedeclareerd'; } } $jan = new User('jan'); $jan->setEmail('jan@email-example.nl'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VmsN0
function name:  (null)
number of ops:  8
compiled vars:  !0 = $jan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'User'
          1        SEND_VAL_EX                                              'jan'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        INIT_METHOD_CALL                                         !0, 'setEmail'
          5        SEND_VAL_EX                                              'jan%40email-example.nl'
          6        DO_FCALL                                      0          
   17     7      > RETURN                                                   1

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

End of function __construct

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VmsN0
function name:  __call
number of ops:  6
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        CONCAT                                           ~2      'De+method+User%3A%3A', !0
          3        CONCAT                                           ~3      ~2, '+is+niet+gedeclareerd'
          4        ECHO                                                     ~3
   12     5      > RETURN                                                   null

End of function __call

End of class User.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.4 ms | 1394 KiB | 13 Q