3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { array_map(function () {throw new \Exception;}, [1, 2, 3]); } catch (\Exception $e) { } try { array_filter([1, 2, 3], function () {throw new \Exception;}); } catch (\Exception $e) { } try { array_reduce([1, 2, 3], function () {throw new \Exception;}); } catch (\Exception $e) { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
filename:       /in/0Qinj
function name:  (null)
number of ops:  22
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'array_map'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0Qinj%3A4%240'
          2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                                 
          5      > JMP                                                      ->7
    5     6  E > > CATCH                                       last         'Exception'
    9     7    >   INIT_FCALL                                               'array_filter'
          8        SEND_VAL                                                 <array>
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0Qinj%3A9%241'
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                                 
         12      > JMP                                                      ->14
   10    13  E > > CATCH                                       last         'Exception'
   14    14    >   INIT_FCALL                                               'array_reduce'
         15        SEND_VAL                                                 <array>
         16        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0Qinj%3A14%242'
         17        SEND_VAL                                                 ~5
         18        DO_ICALL                                                 
         19      > JMP                                                      ->21
   15    20  E > > CATCH                                       last         'Exception'
   16    21    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0Qinj%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/0Qinj
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
          3*     > RETURN                                                   null

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

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

End of function %00%7Bclosure%7D%2Fin%2F0Qinj%3A9%241

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

End of function %00%7Bclosure%7D%2Fin%2F0Qinj%3A14%242

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.17 ms | 1400 KiB | 19 Q