3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 9; $a = []; $a = [ 'min' => 10, 'max' => $max < $a['min'] ? $a['min'] : $max, ]; var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AJSO8
function name:  (null)
number of ops:  16
compiled vars:  !0 = $max, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 9
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_ARRAY                                       ~4      10, 'min'
    6     3        FETCH_DIM_R                                      ~5      !1, 'min'
          4        IS_SMALLER                                               !0, ~5
          5      > JMPZ                                                     ~6, ->9
          6    >   FETCH_DIM_R                                      ~7      !1, 'min'
          7        QM_ASSIGN                                        ~8      ~7
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~8      !0
         10    >   ADD_ARRAY_ELEMENT                                ~4      ~8, 'max'
    4    11        ASSIGN                                                   !1, ~4
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.13 ms | 1004 KiB | 14 Q