3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error_handler = function() { throw new Exception(); }; set_error_handler($error_handler, E_NOTICE | E_WARNING); if (false === @preg_match('```', null)) { $error_handler(); } restore_error_handler();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/i1eMC
function name:  (null)
number of ops:  19
compiled vars:  !0 = $error_handler
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fi1eMC%3A3%240'
          1        ASSIGN                                                   !0, ~1
    7     2        INIT_FCALL                                               'set_error_handler'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 10
          5        DO_ICALL                                                 
    9     6        BEGIN_SILENCE                                    ~4      
          7        INIT_FCALL                                               'preg_match'
          8        SEND_VAL                                                 '%60%60%60'
          9        SEND_VAL                                                 null
         10        DO_ICALL                                         $5      
         11        END_SILENCE                                              ~4
         12        TYPE_CHECK                                    4          $5
         13      > JMPZ                                                     ~6, ->16
   10    14    >   INIT_DYNAMIC_CALL                                        !0
         15        DO_FCALL                                      0          
   13    16    >   INIT_FCALL                                               'restore_error_handler'
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fi1eMC%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/i1eMC
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $0      'Exception'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
    5     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fi1eMC%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1395 KiB | 19 Q