3v4l.org

run code in 500+ PHP versions simultaneously
<?php function failMapException() { try { array_map(function ($n) { throw new \Exception('oops'); }, [1, 2, 3]); } catch (\Exception $e) { } } failMapException();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kKKcT
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                                   'failmapexception'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Function failmapexception:
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 = 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
filename:       /in/kKKcT
function name:  failMapException
number of ops:  8
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'array_map'
          1        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
    8     2        SEND_VAL                                                     ~1
          3        SEND_VAL                                                     <array>
    6     4        DO_ICALL                                                     
    8     5      > JMP                                                          ->7
    9     6  E > > CATCH                                           last         'Exception'
   12     7    > > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/kKKcT
function name:  {closure:failMapException():6}
number of ops:  6
compiled vars:  !0 = $n
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
    7     1        NEW                                                  $1      'Exception'
          2        SEND_VAL_EX                                                  'oops'
          3        DO_FCALL                                          0          
          4      > THROW                                             0          $1
    8     5*     > RETURN                                                       null

End of Dynamic Function 0

End of function failmapexception

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
152.96 ms | 480 KiB | 9 Q