3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! for ($i=0; $i< 1000000 ; $i++) { define('TEST'.$i,$i*12); if($i == 10000) { $i = 0; } } echo TEST456;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
Branch analysis from position: 2
Branch analysis from position: 11
filename:       /in/HQ2nW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->12
    8     2    >   INIT_FCALL                                               'define'
          3        CONCAT                                           ~2      'TEST', !0
          4        SEND_VAL                                                 ~2
          5        MUL                                              ~3      !0, 12
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
   10     8        IS_EQUAL                                                 !0, 10000
          9      > JMPZ                                                     ~5, ->11
   11    10    >   ASSIGN                                                   !0, 0
    5    11    >   PRE_INC                                                  !0
         12    >   IS_SMALLER                                               !0, 1000000
         13      > JMPNZ                                                    ~8, ->2
   17    14    >   FETCH_CONSTANT                                   ~9      'TEST456'
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.49 ms | 1395 KiB | 15 Q