3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sampleData = range(80, 110); foreach ($sampleData as $value) { $result[(10 * ((int)(($value - 1) / 10) <=> 9) + 100) . '+under'][] = $value; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/UcZga
function name:  (null)
number of ops:  23
compiled vars:  !0 = $sampleData, !1 = $value, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 80
          2        SEND_VAL                                                 110
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5      > FE_RESET_R                                       $5      !0, ->18
          6    > > FE_FETCH_R                                               $5, !1, ->18
    4     7    >   SUB                                              ~6      !1, 1
          8        DIV                                              ~7      ~6, 10
          9        CAST                                          4  ~8      ~7
         10        SPACESHIP                                        ~9      ~8, 9
         11        MUL                                              ~10     ~9, 10
         12        ADD                                              ~11     ~10, 100
         13        CONCAT                                           ~12     ~11, '%2Bunder'
         14        FETCH_DIM_W                                      $13     !2, ~12
         15        ASSIGN_DIM                                               $13
         16        OP_DATA                                                  !1
    3    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $5
    6    19        INIT_FCALL                                               'var_export'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.87 ms | 1011 KiB | 15 Q