3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors', 0); var_dump(ini_get('display_errors')); var_dump(ini_get('error_reporting')); //set_error_handler('custHandler'); register_shutdown_function('shutdownHandler'); echo $meow['llama']; function custHandler($errno, $errstr, $errfile, $errline, $errcontext) { echo "Custom handler called."; } function shutdownHandler() { echo "I died."; var_dump(error_get_last()); } $data = ''; while(true) { $data .= str_repeat('#', PHP_INT_MAX); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 26
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 26
Branch analysis from position: 32
Branch analysis from position: 26
filename:       /in/q4s6R
function name:  (null)
number of ops:  33
compiled vars:  !0 = $meow, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 0
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'ini_get'
          9        SEND_VAL                                                 'display_errors'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'ini_get'
         15        SEND_VAL                                                 'error_reporting'
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'register_shutdown_function'
         20        SEND_VAL                                                 'shutdownHandler'
         21        DO_ICALL                                                 
   12    22        FETCH_DIM_R                                      ~9      !0, 'llama'
         23        ECHO                                                     ~9
   25    24        ASSIGN                                                   !1, ''
   26    25      > JMP                                                      ->31
   27    26    >   INIT_FCALL                                               'str_repeat'
         27        SEND_VAL                                                 '%23'
         28        SEND_VAL                                                 9223372036854775807
         29        DO_ICALL                                         $11     
         30        ASSIGN_OP                                     8          !1, $11
   26    31    > > JMPNZ                                                    <true>, ->26
   28    32    > > RETURN                                                   1

Function custhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q4s6R
function name:  custHandler
number of ops:  7
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline, !4 = $errcontext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
   16     5        ECHO                                                     'Custom+handler+called.'
   17     6      > RETURN                                                   null

End of function custhandler

Function shutdownhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q4s6R
function name:  shutdownHandler
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ECHO                                                     'I+died.'
   22     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'error_get_last'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   23     6      > RETURN                                                   null

End of function shutdownhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1400 KiB | 27 Q