3v4l.org

run code in 300+ PHP versions simultaneously
<?php $photoCount = 0; for($i = 0; $i < 5; $i++) { $photoCount++; echo "Inner count is : ".$photoCount; die; // It displays the count } echo "Count is : ".$photoCount; die; // It doesn't display the count(404 Not Found Error)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/diOmW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $photoCount, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
    6     3    >   PRE_INC                                                  !0
    7     4        CONCAT                                           ~5      'Inner+count+is+%3A+', !0
          5        ECHO                                                     ~5
          6      > EXIT                                                     
    5     7*       PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 5
          9      > JMPNZ                                                    ~7, ->3
    8    10    >   CONCAT                                           ~8      'Count+is+%3A+', !0
         11        ECHO                                                     ~8
         12      > EXIT                                                     
         13*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.95 ms | 1393 KiB | 13 Q