3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("x",10000); $y = 0; for($i=0;$i<x;$i++){ $y = $i+$y; } echo $y;
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 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/GshEu
function name:  (null)
number of ops:  15
compiled vars:  !0 = $y, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'x'
          2        SEND_VAL                                                 10000
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 0
    4     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->10
    5     7    >   ADD                                              ~5      !1, !0
          8        ASSIGN                                                   !0, ~5
    4     9        PRE_INC                                                  !1
         10    >   FETCH_CONSTANT                                   ~8      'x'
         11        IS_SMALLER                                               !1, ~8
         12      > JMPNZ                                                    ~9, ->7
    7    13    >   ECHO                                                     !0
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.29 ms | 1394 KiB | 15 Q