3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { $this->test = 'meow'; } } function error_handler() { $test = new test(); return true; } set_error_handler("error_handler"); // test one class a {} $a = new a; $a->undefined .= 'test'; echo isset($a->undefined) ? 'true' : 'false'; echo "\n"; // test two $b .= 'test'; echo isset($b) ? 'true' : 'false'; echo "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Branch analysis from position: 20
filename:       /in/KGXhF
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'error_handler'
          2        DO_ICALL                                                 
   18     3        NEW                                              $3      'a'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   19     6        ASSIGN_OBJ_OP                                 8          !0, 'undefined'
          7        OP_DATA                                                  'test'
   20     8        ISSET_ISEMPTY_PROP_OBJ                                   !0, 'undefined'
          9      > JMPZ                                                     ~7, ->12
         10    >   QM_ASSIGN                                        ~8      'true'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~8      'false'
         13    >   ECHO                                                     ~8
   22    14        ECHO                                                     '%0A'
   25    15        ASSIGN_OP                                     8          !1, 'test'
   26    16        ISSET_ISEMPTY_CV                                         !1
         17      > JMPZ                                                     ~10, ->20
         18    >   QM_ASSIGN                                        ~11     'true'
         19      > JMP                                                      ->21
         20    >   QM_ASSIGN                                        ~11     'false'
         21    >   ECHO                                                     ~11
   28    22        ECHO                                                     '%0A'
         23      > RETURN                                                   1

Function error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KGXhF
function name:  error_handler
number of ops:  5
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3      > RETURN                                                   <true>
   12     4*     > RETURN                                                   null

End of function error_handler

Class test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KGXhF
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'test'
          1        OP_DATA                                                  'meow'
    6     2      > RETURN                                                   null

End of function __construct

End of class test.

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.88 ms | 1400 KiB | 15 Q