3v4l.org

run code in 300+ PHP versions simultaneously
<?php function shutdown() { $error = error_get_last(); if (empty($error) || in_array($error['type'], [E_DEPRECATED, E_USER_DEPRECATED], true)) { print 'dismissed'; return; } print 'Ended'; } register_shutdown_function('shutdown');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLdGQ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'shutdown'
          2        DO_ICALL                                                 
          3      > RETURN                                                   1

Function shutdown:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/YLdGQ
function name:  shutdown
number of ops:  13
compiled vars:  !0 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'error_get_last'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    6     3        ISSET_ISEMPTY_CV                                 ~3      !0
          4      > JMPNZ_EX                                         ~3      ~3, ->8
          5    >   FETCH_DIM_R                                      ~4      !0, 'type'
          6        IN_ARRAY                                         ~5      ~4, <array>
          7        BOOL                                             ~3      ~5
          8    > > JMPZ                                                     ~3, ->11
    7     9    >   ECHO                                                     'dismissed'
    8    10      > RETURN                                                   null
   10    11    >   ECHO                                                     'Ended'
   11    12      > RETURN                                                   null

End of function shutdown

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.08 ms | 1395 KiB | 17 Q