3v4l.org

run code in 500+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline) { echo "caught"; return true; }); trigger_error('foo', E_USER_ERROR); echo "after";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e97TO
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    6     2        SEND_VAL                                                     ~0
    3     3        DO_ICALL                                                     
    8     4        INIT_FCALL                                                   'trigger_error'
          5        SEND_VAL                                                     'foo'
          6        SEND_VAL                                                     256
          7        DO_ICALL                                                     
    9     8        ECHO                                                         'after'
          9      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e97TO
function name:  {closure:/in/e97TO:3}
number of ops:  7
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
          3        RECV                                                 !3      
    4     4        ECHO                                                         'caught'
    5     5      > RETURN                                                       <true>
    6     6*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.87 ms | 3308 KiB | 15 Q