3v4l.org

run code in 300+ 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                                  '%00%7Bclosure%7D%2Fin%2FkKKcT%3A6%240'
    8     2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                                 
          5      > JMP                                                      ->7
    9     6  E > > CATCH                                       last         'Exception'
   12     7    > > RETURN                                                   null

End of function failmapexception

Function %00%7Bclosure%7D%2Fin%2FkKKcT%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/kKKcT
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2FkKKcT%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.15 ms | 1402 KiB | 16 Q