3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i <= 10; $i += 0.1) { for ($j = 0; $j <= 10; $j += 0.1) { $c = (4*$i + 6*$j)/10; if ($c >= 7) { echo "(4*$i + 6*$j)/10 = " . $c . PHP_EOL; } } }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 2
Branch analysis from position: 25
Branch analysis from position: 2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
Branch analysis from position: 4
Branch analysis from position: 19
filename:       /in/7jH5Y
function name:  (null)
number of ops:  26
compiled vars:  !0 = $i, !1 = $j, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->23
    4     2    >   ASSIGN                                                   !1, 0
          3      > JMP                                                      ->20
    5     4    >   MUL                                              ~5      !0, 4
          5        MUL                                              ~6      !1, 6
          6        ADD                                              ~7      ~5, ~6
          7        DIV                                              ~8      ~7, 10
          8        ASSIGN                                                   !2, ~8
    6     9        IS_SMALLER_OR_EQUAL                                      7, !2
         10      > JMPZ                                                     ~10, ->19
    7    11    >   ROPE_INIT                                     5  ~12     '%284%2A'
         12        ROPE_ADD                                      1  ~12     ~12, !0
         13        ROPE_ADD                                      2  ~12     ~12, '+%2B+6%2A'
         14        ROPE_ADD                                      3  ~12     ~12, !1
         15        ROPE_END                                      4  ~11     ~12, '%29%2F10+%3D+'
         16        CONCAT                                           ~15     ~11, !2
         17        CONCAT                                           ~16     ~15, '%0A'
         18        ECHO                                                     ~16
    4    19    >   ASSIGN_OP                                     1          !1, 0.1
         20    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         21      > JMPNZ                                                    ~18, ->4
    3    22    >   ASSIGN_OP                                     1          !0, 0.1
         23    >   IS_SMALLER_OR_EQUAL                                      !0, 10
         24      > JMPNZ                                                    ~20, ->2
   10    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.08 ms | 1008 KiB | 13 Q