3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; for ($i=0; $i < 3; $i++) { $x = $x / 10^$i; var_dump($x, json_encode($x)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/DoGE3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->14
    6     3    >   DIV                                              ~4      !0, 10
          4        BW_XOR                                           ~5      !1, ~4
          5        ASSIGN                                                   !0, ~5
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
    4    13        PRE_INC                                                  !1
         14    >   IS_SMALLER                                               !1, 3
         15      > JMPNZ                                                    ~10, ->3
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.94 ms | 1399 KiB | 17 Q