3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x($n) { $z="printf"; for($i = 1; $i <= $n; $i++) { $n % $i == 0 && $i != $n ? $f[]=$i & $z($i ): 0; } array_sum($f) == $n ? $z('P') : $z('I'); } x(28);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gNHoJ
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'x'
          1        SEND_VAL                                                 28
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 33
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
Branch analysis from position: 4
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
Branch analysis from position: 4
Branch analysis from position: 9
filename:       /in/gNHoJ
function name:  x
number of ops:  39
compiled vars:  !0 = $n, !1 = $z, !2 = $i, !3 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, 'printf'
    4     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->21
    5     4    >   MOD                                              ~6      !0, !2
          5        IS_EQUAL                                         ~7      ~6, 0
          6      > JMPZ_EX                                          ~7      ~7, ->9
          7    >   IS_NOT_EQUAL                                     ~8      !2, !0
          8        BOOL                                             ~7      ~8
          9    > > JMPZ                                                     ~7, ->18
         10    >   INIT_DYNAMIC_CALL                                        !1
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0  $10     
         13        BW_AND                                           ~11     !2, $10
         14        ASSIGN_DIM                                       ~9      !3
         15        OP_DATA                                                  ~11
         16        QM_ASSIGN                                        ~12     ~9
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~12     0
         19    >   FREE                                                     ~12
    4    20        PRE_INC                                                  !2
         21    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         22      > JMPNZ                                                    ~14, ->4
    7    23    >   INIT_FCALL                                               'array_sum'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                         $15     
         26        IS_EQUAL                                                 !0, $15
         27      > JMPZ                                                     ~16, ->33
         28    >   INIT_DYNAMIC_CALL                                        !1
         29        SEND_VAL_EX                                              'P'
         30        DO_FCALL                                      0  $17     
         31        QM_ASSIGN                                        ~18     $17
         32      > JMP                                                      ->37
         33    >   INIT_DYNAMIC_CALL                                        !1
         34        SEND_VAL_EX                                              'I'
         35        DO_FCALL                                      0  $19     
         36        QM_ASSIGN                                        ~18     $19
         37    >   FREE                                                     ~18
    8    38      > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.86 ms | 1403 KiB | 16 Q