3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = []; #for文で1~50までの数字を1つづつ数を増やしてループ for ($a = 1; $a <= 50; $a++) { #もし3の倍数と3の付く数字(文字列)だったら、 if ($a % 3 === 0 || strpos($a, '3') !== false) { #$aを配列にいれて出力 $num = [$a] ; } echo $num[0]; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
Branch analysis from position: 3
Branch analysis from position: 15
Branch analysis from position: 12
filename:       /in/ZkIfC
function name:  (null)
number of ops:  21
compiled vars:  !0 = $num, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->18
    6     3    >   MOD                                              ~4      !1, 3
          4        IS_IDENTICAL                                     ~5      ~4, 0
          5      > JMPNZ_EX                                         ~5      ~5, ->12
          6    >   INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 '3'
          9        DO_ICALL                                         $6      
         10        TYPE_CHECK                                  1018  ~7      $6
         11        BOOL                                             ~5      ~7
         12    > > JMPZ                                                     ~5, ->15
    8    13    >   INIT_ARRAY                                       ~8      !1
         14        ASSIGN                                                   !0, ~8
   10    15    >   FETCH_DIM_R                                      ~10     !0, 0
         16        ECHO                                                     ~10
    4    17        PRE_INC                                                  !1
         18    >   IS_SMALLER_OR_EQUAL                                      !1, 50
         19      > JMPNZ                                                    ~12, ->3
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.07 ms | 1400 KiB | 15 Q