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 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/9QXr2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $error_handler
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F9QXr2%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        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%60%60%60'
          8        SEND_VAL                                                 null
          9        DO_ICALL                                         $4      
         10        TYPE_CHECK                                    4          $4
         11      > JMPZ                                                     ~5, ->14
   10    12    >   INIT_DYNAMIC_CALL                                        !0
         13        DO_FCALL                                      0          
   13    14    >   INIT_FCALL                                               'restore_error_handler'
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F9QXr2%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/9QXr2
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%2F9QXr2%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.25 ms | 1395 KiB | 19 Q