3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = []; set_error_handler (function (){ var_dump("qwqew"); },E_NOTICE); set_error_handler (function (){ var_dump("xcxcxcx"); },E_ALL); 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/2Jvj1
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>
    4     1        INIT_FCALL                                               'set_error_handler'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2Jvj1%3A4%240'
    6     3        SEND_VAL                                                 ~3
          4        SEND_VAL                                                 8
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'set_error_handler'
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2Jvj1%3A8%241'
   10     8        SEND_VAL                                                 ~5
          9        SEND_VAL                                                 32767
         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%2F2Jvj1%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Jvj1
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'qwqew'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F2Jvj1%3A4%240

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

End of function %00%7Bclosure%7D%2Fin%2F2Jvj1%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.72 ms | 1396 KiB | 17 Q