3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "a"; $prev = $a; for ($i=0; $i<100000; $i++) { $a++; if (!is_string($a)) { var_dump($prev); var_dump($a); var_dump($i); break; } $prev = $a; } ?>
Finding entry points
Branch analysis from position: 0
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
Branch analysis from position: 4
filename:       /in/jhJ3l
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $prev, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a'
    3     1        ASSIGN                                                   !1, !0
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->20
    5     4    >   PRE_INC                                                  !0
    6     5        TYPE_CHECK                                   64  ~7      !0
          6        BOOL_NOT                                         ~8      ~7
          7      > JMPZ                                                     ~8, ->18
    7     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
   10    17      > JMP                                                      ->22
   12    18    >   ASSIGN                                                   !1, !0
    4    19        PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !2, 100000
         21      > JMPNZ                                                    ~14, ->4
   14    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.86 ms | 1395 KiB | 15 Q