3v4l.org

run code in 300+ PHP versions simultaneously
<?php trigger_error('this is no problem - just a notice'); set_error_handler(function ($s, $m, $f, $l) { throw new ErrorException($m, 0, $s, $f, $l); }); echo "this will still work fine:"; @trigger_error('see? no problem'); echo "\nthis, however, will not:"; trigger_error('see? no problem');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/222oU
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'trigger_error'
          1        SEND_VAL                                                 'this+is+no+problem+-+just+a+notice'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'set_error_handler'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F222oU%3A5%240'
    7     5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
    9     7        ECHO                                                     'this+will+still+work+fine%3A'
          8        BEGIN_SILENCE                                    ~3      
          9        INIT_FCALL                                               'trigger_error'
         10        SEND_VAL                                                 'see%3F+no+problem'
         11        DO_ICALL                                                 
         12        END_SILENCE                                              ~3
   10    13        ECHO                                                     '%0Athis%2C+however%2C+will+not%3A'
         14        INIT_FCALL                                               'trigger_error'
         15        SEND_VAL                                                 'see%3F+no+problem'
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F222oU%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/222oU
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $s, !1 = $m, !2 = $f, !3 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    6     4        NEW                                              $4      'ErrorException'
          5        SEND_VAR_EX                                              !1
          6        SEND_VAL_EX                                              0
          7        SEND_VAR_EX                                              !0
          8        SEND_VAR_EX                                              !2
          9        SEND_VAR_EX                                              !3
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $4
    7    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F222oU%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.18 ms | 1396 KiB | 17 Q