3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2,3]; $u = [false, false, false]; for ($p = count($a), $i = count($a); $i > 0; $p*=($p-1), $i--); echo $p;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/nR8Xo
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $u, !2 = $p, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        COUNT                                            ~6      !0
          3        ASSIGN                                                   !2, ~6
          4        COUNT                                            ~8      !0
          5        ASSIGN                                                   !3, ~8
          6      > JMP                                                      ->10
          7    >   SUB                                              ~10     !2, 1
          8        ASSIGN_OP                                     3          !2, ~10
          9        PRE_DEC                                                  !3
         10    >   IS_SMALLER                                               0, !3
         11      > JMPNZ                                                    ~13, ->7
    6    12    >   ECHO                                                     !2
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.58 ms | 1393 KiB | 13 Q