3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = [ [null, null], [null, -2], [null, 2], [-2, null], [2, null], [-2, 2], ]; $a = 'f'; foreach($types as $key => $type) { echo "(interval[".($type[0]??'-∞').",".($type[1]??'∞')."] * -1) = -(interval[".($type[0]??'-∞').",".($type[1]??'∞')."]);\r\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 27
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 27
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/AUHH7
function name:  (null)
number of ops:  29
compiled vars:  !0 = $types, !1 = $a, !2 = $type, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, 'f'
   12     2      > FE_RESET_R                                       $6      !0, ->27
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->27
          4    >   ASSIGN                                                   !3, ~7
   13     5        FETCH_DIM_IS                                     ~9      !2, 0
          6        COALESCE                                         ~10     ~9
          7        QM_ASSIGN                                        ~10     '-%E2%88%9E'
          8        CONCAT                                           ~11     '%28interval%5B', ~10
          9        CONCAT                                           ~12     ~11, '%2C'
         10        FETCH_DIM_IS                                     ~13     !2, 1
         11        COALESCE                                         ~14     ~13
         12        QM_ASSIGN                                        ~14     '%E2%88%9E'
         13        CONCAT                                           ~15     ~12, ~14
         14        CONCAT                                           ~16     ~15, '%5D+%2A+-1%29+%3D+-%28interval%5B'
         15        FETCH_DIM_IS                                     ~17     !2, 0
         16        COALESCE                                         ~18     ~17
         17        QM_ASSIGN                                        ~18     '-%E2%88%9E'
         18        CONCAT                                           ~19     ~16, ~18
         19        CONCAT                                           ~20     ~19, '%2C'
         20        FETCH_DIM_IS                                     ~21     !2, 1
         21        COALESCE                                         ~22     ~21
         22        QM_ASSIGN                                        ~22     '%E2%88%9E'
         23        CONCAT                                           ~23     ~20, ~22
         24        CONCAT                                           ~24     ~23, '%5D%29%3B%0D%0A'
         25        ECHO                                                     ~24
   12    26      > JMP                                                      ->3
         27    >   FE_FREE                                                  $6
   14    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142 ms | 998 KiB | 13 Q