3v4l.org

run code in 300+ PHP versions simultaneously
<?php function shutdown() { $error = error_get_last(); if (empty($error) ) { print 'dismissed'; return; } print 'Ended'; } register_shutdown_function('shutdown'); trigger_error('yoo', E_USER_DEPRECATED);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GORgN
function name:  (null)
number of ops:  8
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                                                 
   14     3        INIT_FCALL                                               'trigger_error'
          4        SEND_VAL                                                 'yoo'
          5        SEND_VAL                                                 16384
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function shutdown:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GORgN
function name:  shutdown
number of ops:  9
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                                         !0
          4      > JMPZ                                                     ~3, ->7
    7     5    >   ECHO                                                     'dismissed'
    8     6      > RETURN                                                   null
   10     7    >   ECHO                                                     'Ended'
   11     8      > RETURN                                                   null

End of function shutdown

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.71 ms | 1395 KiB | 19 Q