3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = []; set_error_handler (function ($a,$B,$C){ var_dump("qwqew", $a, $B,$C); },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 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4M831
function name:  (null)
number of ops:  15
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%2F4M831%3A5%240'
    7     3        SEND_VAL                                                 ~3
          4        SEND_VAL                                                 8
          5        DO_ICALL                                                 
   10     6        FETCH_DIM_R                                      ~5      !0, 1
          7        FREE                                                     ~5
          8      > JMP                                                      ->14
   11     9  E > > CATCH                                       last         'Exception'
   12    10    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         11        DO_FCALL                                      0  $6      
         12        CONCAT                                           ~7      'Exception%3A', $6
         13        ECHO                                                     ~7
   13    14    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F4M831%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4M831
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $a, !1 = $B, !2 = $C
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    6     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 'qwqew'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
    7     9      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1388 KiB | 17 Q