3v4l.org

run code in 300+ PHP versions simultaneously
<?php function meh() { static $a = 10; $a--; echo "$a\n"; if ($a > 0) 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/mlYWo
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'meh'
          2        DO_ICALL                                                 
   15     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 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mlYWo
function name:  meh
number of ops:  14
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, ->12
    8     7    >   INIT_FCALL                                               'trigger_error'
          8        SEND_VAL                                                 'lol'
          9        SEND_VAL                                                 256
         10        DO_ICALL                                                 
         11      > JMP                                                      ->13
   10    12    > > RETURN                                                   <true>
   11    13    > > RETURN                                                   null

End of function meh

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.27 ms | 1395 KiB | 17 Q