3v4l.org

run code in 300+ PHP versions simultaneously
<?php //error_reporting(0); ob_start(); $arr = array(1, 2, 3, 0); for($i = 0; $i < count($arr); $i++) { var_dump(); // A lot of output $tmp = 1 / $arr[$i]; // Division by zero on last iteration }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
Branch analysis from position: 5
filename:       /in/hb62J
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $i, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    5     2        ASSIGN                                                   !0, <array>
    6     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->11
    8     5    >   INIT_FCALL                                               'var_dump'
          6        DO_ICALL                                                 
    9     7        FETCH_DIM_R                                      ~7      !0, !1
          8        DIV                                              ~8      1, ~7
          9        ASSIGN                                                   !2, ~8
    6    10        PRE_INC                                                  !1
         11    >   COUNT                                            ~11     !0
         12        IS_SMALLER                                               !1, ~11
         13      > JMPNZ                                                    ~12, ->5
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.52 ms | 1394 KiB | 17 Q