3v4l.org

run code in 300+ PHP versions simultaneously
<?php $grade = 10; try { $grade = $grade / 0; } catch (Exception $e) { $grade = 0; } var_dump($grade);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BLFvF
function name:  (null)
number of ops:  10
compiled vars:  !0 = $grade, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    5     1        DIV                                              ~3      !0, 0
          2        ASSIGN                                                   !0, ~3
          3      > JMP                                                      ->6
    6     4  E > > CATCH                                       last         'Exception'
    7     5    >   ASSIGN                                                   !0, 0
    9     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.88 ms | 1394 KiB | 15 Q