3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. (Code = 62) Position 1 = -2
filename:       /in/0sFRt
function name:  (null)
number of ops:  16
compiled vars:  !0 = $st
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  19     1        NEW                                              $2      :-5
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  20     4        INIT_METHOD_CALL                                         !0, 'describe'
         5        DO_FCALL                                      0          
  21     6        FETCH_OBJ_R                                      $6      !0, 'Hasan'
         7        FREE                                                     $6
  22     8        ASSIGN_OBJ                                               !0, 'age'
         9        OP_DATA                                                  15
  23    10        INIT_METHOD_CALL                                         !0, 'notExistmethod'
        11        SEND_VAL_EX                                              '2'
        12        SEND_VAL_EX                                              '8'
        13        SEND_VAL_EX                                              '5'
        14        DO_FCALL                                      0          
  26    15      > RETURN                                                   1

Class Student:
Function describe:
Finding entry points
Branch analysis from position: 0
Jump 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
Jump 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
Jump 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
Jump 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 7.3.0