3v4l.org

run code in 300+ PHP versions simultaneously
<?php function shutdown() { $error = error_get_last(); if ( 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/j0WTJ
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 = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0WTJ
function name:  shutdown
number of ops:  10
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        FETCH_DIM_R                                      ~3      !0, 'type'
          4        IN_ARRAY                                                 ~3, <array>
          5      > JMPZ                                                     ~4, ->8
    7     6    >   ECHO                                                     'dismissed'
    8     7      > RETURN                                                   null
   10     8    >   ECHO                                                     'Ended'
   11     9      > RETURN                                                   null

End of function shutdown

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.85 ms | 1395 KiB | 17 Q