3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Es soll eine Ausgabe von 0-2 produziert werden und bewiesen werden, dass die Zählung bei 0 beginnt. for($i = 0; $i < 3; ++$i) { echo 'Counter ist auf: '.$i."\n"; assert($i == 0); }
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 = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
Branch analysis from position: 2
filename:       /in/FDYrp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->12
    4     2    >   CONCAT                                           ~2      'Counter+ist+auf%3A+', !0
          3        CONCAT                                           ~3      ~2, '%0A'
          4        ECHO                                                     ~3
    5     5        ASSERT_CHECK                                             
          6        INIT_FCALL                                               'assert'
          7        IS_EQUAL                                         ~4      !0, 0
          8        SEND_VAL                                                 ~4
          9        SEND_VAL                                                 'assert%28%24i+%3D%3D+0%29'
         10        DO_ICALL                                                 
    3    11        PRE_INC                                                  !0
         12    >   IS_SMALLER                                               !0, 3
         13      > JMPNZ                                                    ~7, ->2
    7    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.8 ms | 1386 KiB | 15 Q