3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = array(); for($i = 0; $i < 10; $i++) { $exp = (end($t) < (5 - $i)); var_dump($exp);echo (5- $i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/hAd1J
function name:  (null)
number of ops:  18
compiled vars:  !0 = $t, !1 = $i, !2 = $exp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->15
    4     3    >   INIT_FCALL                                               'end'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $5      
          6        SUB                                              ~6      5, !1
          7        IS_SMALLER                                       ~7      $5, ~6
          8        ASSIGN                                                   !2, ~7
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12        SUB                                              ~10     5, !1
         13        ECHO                                                     ~10
    3    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10
         16      > JMPNZ                                                    ~12, ->3
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.13 ms | 1386 KiB | 17 Q