3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooException extends Exception { public function __get($name) { if ($name = 'line') { return $this->line; } } public function __set($name, $value) { if ($name = 'line') { $this->line = $value; } } } $e = new FooException(); $e->line = 100; var_dump($e);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tHhEL
function name:  (null)
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'FooException'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        ASSIGN_OBJ                                               !0, 'line'
          4        OP_DATA                                                  100
   19     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class FooException:
Function __get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tHhEL
function name:  __get
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                           ~1      !0, 'line'
          2      > JMPZ                                                     ~1, ->5
    6     3    >   FETCH_OBJ_R                                      ~2      'line'
          4      > RETURN                                                   ~2
    8     5    > > RETURN                                                   null

End of function __get

Function __set:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/tHhEL
function name:  __set
number of ops:  7
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN                                           ~2      !0, 'line'
          3      > JMPZ                                                     ~2, ->6
   11     4    >   ASSIGN_OBJ                                               'line'
          5        OP_DATA                                                  !1
   13     6    > > RETURN                                                   null

End of function __set

End of class FooException.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.02 ms | 1396 KiB | 15 Q