3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($_, $errstr) { var_dump($errstr); return true; }); echo 1; trigger_error('error', E_USER_ERROR); restore_error_handler(); set_error_handler(function ($_, $errstr) { var_dump($errstr); return false; }); echo 2; trigger_error('error', E_USER_ERROR); echo 3;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9J9TB
function name:  (null)
number of ops:  22
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        ECHO                                                     1
    9     5        INIT_FCALL                                               'trigger_error'
          6        SEND_VAL                                                 'error'
          7        SEND_VAL                                                 256
          8        DO_ICALL                                                 
   11     9        INIT_FCALL                                               'restore_error_handler'
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'set_error_handler'
         12        DECLARE_LAMBDA_FUNCTION                          ~4      [1]
   15    13        SEND_VAL                                                 ~4
   12    14        DO_ICALL                                                 
   17    15        ECHO                                                     2
   18    16        INIT_FCALL                                               'trigger_error'
         17        SEND_VAL                                                 'error'
         18        SEND_VAL                                                 256
         19        DO_ICALL                                                 
   20    20        ECHO                                                     3
   21    21      > 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/9J9TB
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $_, !1 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   <true>
    6     6*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9J9TB
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $_, !1 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
   14     5      > RETURN                                                   <false>
   15     6*     > RETURN                                                   null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.26 ms | 1006 KiB | 17 Q