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 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
filename:       /in/MnAXj
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $2      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   19     3        ASSIGN_OBJ_OP                                 8          !0, 'undefined'
          4        OP_DATA                                                  'test'
   20     5        ISSET_ISEMPTY_PROP_OBJ                                   !0, 'undefined'
          6      > JMPZ                                                     ~6, ->9
          7    >   QM_ASSIGN                                        ~7      'true'
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~7      'false'
         10    >   ECHO                                                     ~7
   22    11        ECHO                                                     '%0A'
   25    12        ASSIGN_OP                                     8          !1, 'test'
   26    13        ISSET_ISEMPTY_CV                                         !1
         14      > JMPZ                                                     ~9, ->17
         15    >   QM_ASSIGN                                        ~10     'true'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~10     'false'
         18    >   ECHO                                                     ~10
   28    19        ECHO                                                     '%0A'
         20      > RETURN                                                   1

Function error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MnAXj
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/MnAXj
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:
152.68 ms | 1399 KiB | 13 Q