3v4l.org

run code in 300+ PHP versions simultaneously
<?php function meh() { static $a = 10; $a--; echo "$a\n"; if ($a > 0) { set_error_handler('meh'); trigger_error('lol', E_USER_ERROR); } else return true; } set_error_handler('meh'); trigger_error('lol', E_USER_ERROR);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WQuQp
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'meh'
          2        DO_ICALL                                                 
   16     3        INIT_FCALL                                               'trigger_error'
          4        SEND_VAL                                                 'lol'
          5        SEND_VAL                                                 256
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function meh:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WQuQp
function name:  meh
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BIND_STATIC                                              !0
    5     1        PRE_DEC                                                  !0
    6     2        NOP                                                      
          3        FAST_CONCAT                                      ~2      !0, '%0A'
          4        ECHO                                                     ~2
    7     5        IS_SMALLER                                               0, !0
          6      > JMPZ                                                     ~3, ->15
    8     7    >   INIT_FCALL                                               'set_error_handler'
          8        SEND_VAL                                                 'meh'
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'trigger_error'
         11        SEND_VAL                                                 'lol'
         12        SEND_VAL                                                 256
         13        DO_ICALL                                                 
         14      > JMP                                                      ->16
   11    15    > > RETURN                                                   <true>
   12    16    > > RETURN                                                   null

End of function meh

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.38 ms | 1396 KiB | 17 Q