3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = []; set_error_handler (function (){ var_dump("xcxcxcx"); },E_ALL); set_error_handler (function (){ var_dump("qwqew"); },E_NOTICE); try { $match[1]; } catch (\Exception $e) { echo 'Exception:' . $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KP7k6
function name:  (null)
number of ops:  20
compiled vars:  !0 = $match, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'set_error_handler'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FKP7k6%3A5%240'
    7     3        SEND_VAL                                                 ~3
          4        SEND_VAL                                                 32767
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'set_error_handler'
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FKP7k6%3A10%241'
   12     8        SEND_VAL                                                 ~5
          9        SEND_VAL                                                 8
         10        DO_ICALL                                                 
   15    11        FETCH_DIM_R                                      ~7      !0, 1
         12        FREE                                                     ~7
         13      > JMP                                                      ->19
   16    14  E > > CATCH                                       last         'Exception'
   17    15    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         16        DO_FCALL                                      0  $8      
         17        CONCAT                                           ~9      'Exception%3A', $8
         18        ECHO                                                     ~9
   18    19    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FKP7k6%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KP7k6
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'xcxcxcx'
          2        DO_ICALL                                                 
    7     3      > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2FKP7k6%3A10%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KP7k6
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'qwqew'
          2        DO_ICALL                                                 
   12     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FKP7k6%3A10%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.15 ms | 1388 KiB | 17 Q