3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
276.54 ms | 1395 KiB | 19 Q