3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('max_execution_time', 1); set_error_handler(null, E_ALL); class A { function __get($name) { return $name; } } global $a; $a = new A; function shutdown() { global $a; // Warning: Undefined property: A::$foo ... var_dump($a->foo); } register_shutdown_function('shutdown'); // Try to trigger "Fatal error: Maximum execution time of 1 second exceeded" // within the A::__get() method. for ($i = 0; $i < 100000000; $i++) { $a->foo; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 17
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 17
Branch analysis from position: 22
Branch analysis from position: 17
filename:       /in/DhXZH
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'max_execution_time'
          2        SEND_VAL                                                     1
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'set_error_handler'
          5        SEND_VAL                                                     null
          6        SEND_VAL                                                     30719
          7        DO_ICALL                                                     
   12     8        BIND_GLOBAL                                                  !0, 'a'
   13     9        NEW                                                  $4      'A'
         10        DO_FCALL                                          0          
         11        ASSIGN                                                       !0, $4
   21    12        INIT_FCALL                                                   'register_shutdown_function'
         13        SEND_VAL                                                     'shutdown'
         14        DO_ICALL                                                     
   25    15        ASSIGN                                                       !1, 0
         16      > JMP                                                          ->20
   26    17    >   FETCH_OBJ_R                                          ~9      !0, 'foo'
         18        FREE                                                         ~9
   25    19        PRE_INC                                                      !1
         20    >   IS_SMALLER                                                   !1, 100000000
         21      > JMPNZ                                                        ~11, ->17
   27    22    > > RETURN                                                       1

Function shutdown:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DhXZH
function name:  shutdown
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   BIND_GLOBAL                                                  !0, 'a'
   18     1        INIT_FCALL                                                   'var_dump'
          2        FETCH_OBJ_R                                          ~1      !0, 'foo'
          3        SEND_VAL                                                     ~1
          4        DO_ICALL                                                     
   19     5      > RETURN                                                       null

End of function shutdown

Class A:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DhXZH
function name:  __get
number of ops:  3
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
    9     1      > RETURN                                                       !0
   10     2*     > RETURN                                                       null

End of function __get

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.18 ms | 1652 KiB | 17 Q