3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(0, 7); class helper{ public $a1; public $a2; public $a3; public $a4; public $a5; public $a6; public $a7; public $a8; public $a9; public $a10; public $a11; public $a12; public $a13; public $a14; public function hello() { echo "maple"; } } set_error_handler(function($err, $msg) { global $array; global $helper; $array[] = 1; // force resize $helper = new helper(); }); function crash() { global $array; global $helper; $array[0] = $var; // undefined notice $helper->hello(); $helper->$a1 = 1337; } crash();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0HHbQ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 7
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   24     5        INIT_FCALL                                               'set_error_handler'
          6        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   29     7        SEND_VAL                                                 ~3
   24     8        DO_ICALL                                                 
   39     9        INIT_FCALL                                               'crash'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0HHbQ
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $err, !1 = $msg, !2 = $array, !3 = $helper
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   25     2        BIND_GLOBAL                                              !2, 'array'
   26     3        BIND_GLOBAL                                              !3, 'helper'
   27     4        ASSIGN_DIM                                               !2
          5        OP_DATA                                                  1
   28     6        NEW                                              $5      'helper'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !3, $5
   29     9      > RETURN                                                   null

End of Dynamic Function 0

Function crash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0HHbQ
function name:  crash
number of ops:  9
compiled vars:  !0 = $array, !1 = $helper, !2 = $var, !3 = $a1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   BIND_GLOBAL                                              !0, 'array'
   33     1        BIND_GLOBAL                                              !1, 'helper'
   34     2        ASSIGN_DIM                                               !0, 0
          3        OP_DATA                                                  !2
   35     4        INIT_METHOD_CALL                                         !1, 'hello'
          5        DO_FCALL                                      0          
   36     6        ASSIGN_OBJ                                               !1, !3
          7        OP_DATA                                                  1337
   37     8      > RETURN                                                   null

End of function crash

Class helper:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0HHbQ
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ECHO                                                     'maple'
   22     1      > RETURN                                                   null

End of function hello

End of class helper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
121.88 ms | 963 KiB | 16 Q