3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function a(callable $a) { } try { a('foo'); } catch (\TypeException $e) { echo "Catched"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R7Fkm
function name:  (null)
number of ops:  10
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   10     3        INIT_FCALL                                               'a'
          4        SEND_VAL                                                 'foo'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->9
   11     7  E > > CATCH                                       last         'TypeException'
   12     8    >   ECHO                                                     'Catched'
   13     9    > > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R7Fkm
function name:  a
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.6 ms | 1397 KiB | 16 Q