3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.38 ms | 1395 KiB | 19 Q