3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array("1","2","3","4"); for($i=count($a);$i>=0;$i--) if (count($a)>=0) { array_pop($a); } return $a;
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 = 13, Position 2 = 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Branch analysis from position: 4
Branch analysis from position: 10
filename:       /in/8NYj6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~3      !0
          2        ASSIGN                                                   !1, ~3
          3      > JMP                                                      ->11
    4     4    >   COUNT                                            ~5      !0
          5        IS_SMALLER_OR_EQUAL                                      0, ~5
          6      > JMPZ                                                     ~6, ->10
    6     7    >   INIT_FCALL                                               'array_pop'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    3    10    >   PRE_DEC                                                  !1
         11    >   IS_SMALLER_OR_EQUAL                                      0, !1
         12      > JMPNZ                                                    ~9, ->4
    9    13    > > RETURN                                                   !0
         14*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.02 ms | 1395 KiB | 15 Q