3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public $username; 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/ko0gH
function name:  (null)
number of ops:  8
compiled vars:  !0 = $jan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'User'
          1        SEND_VAL_EX                                              'jan'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_METHOD_CALL                                         !0, 'setEmail'
          5        SEND_VAL_EX                                              'jan%40email-example.nl'
          6        DO_FCALL                                      0          
   16     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/ko0gH
function name:  __construct
number of ops:  4
compiled vars:  !0 = $username
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               'username'
          2        OP_DATA                                                  !0
    7     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/ko0gH
function name:  __call
number of ops:  6
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        CONCAT                                           ~2      'De+method+User%3A%3A', !0
          3        CONCAT                                           ~3      ~2, '+is+niet+gedeclareerd'
          4        ECHO                                                     ~3
   11     5      > RETURN                                                   null

End of function __call

End of class User.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.73 ms | 1394 KiB | 13 Q