3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Student{ public $name; public function describe(){ echo "I am a student"; } public function __get($pm){ echo "$pm does not exist"; } public function __set($pm, $value){ echo "We set $pm->$value"; } public function __call($pm, $value){ echo 'There is no <b>'.$pm.'</b> method and arguments:'.implode(', ', $value); } } $st = new student(); $st->describe(); $st->Hasan; $st->age = 15; $st->notExistmethod('2','8','5'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0sFRt
function name:  (null)
number of ops:  15
compiled vars:  !0 = $st
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'student'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_METHOD_CALL                                         !0, 'describe'
          4        DO_FCALL                                      0          
   21     5        FETCH_OBJ_R                                      ~5      !0, 'Hasan'
          6        FREE                                                     ~5
   22     7        ASSIGN_OBJ                                               !0, 'age'
          8        OP_DATA                                                  15
   23     9        INIT_METHOD_CALL                                         !0, 'notExistmethod'
         10        SEND_VAL_EX                                              '2'
         11        SEND_VAL_EX                                              '8'
         12        SEND_VAL_EX                                              '5'
         13        DO_FCALL                                      0          
   26    14      > RETURN                                                   1

Class Student:
Function describe:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0sFRt
function name:  describe
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'I+am+a+student'
    7     1      > RETURN                                                   null

End of function describe

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0sFRt
function name:  __get
number of ops:  5
compiled vars:  !0 = $pm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '+does+not+exist'
          3        ECHO                                                     ~1
   10     4      > RETURN                                                   null

End of function __get

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0sFRt
function name:  __set
number of ops:  8
compiled vars:  !0 = $pm, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        ROPE_INIT                                     4  ~3      'We+set+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '-%3E'
          5        ROPE_END                                      3  ~2      ~3, !1
          6        ECHO                                                     ~2
   14     7      > RETURN                                                   null

End of function __set

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0sFRt
function name:  __call
number of ops:  11
compiled vars:  !0 = $pm, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   16     2        CONCAT                                           ~2      'There+is+no+%3Cb%3E', !0
          3        CONCAT                                           ~3      ~2, '%3C%2Fb%3E+method+and+arguments%3A'
          4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C+'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        CONCAT                                           ~5      ~3, $4
          9        ECHO                                                     ~5
   17    10      > RETURN                                                   null

End of function __call

End of class Student.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.42 ms | 1400 KiB | 15 Q