3v4l.org

run code in 300+ PHP versions simultaneously
<?php $person['test'] =1; $someDefault = 2; $age = ($_=& $person['age']) ?: $someDefault; echo $age;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sP2QY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $person, !1 = $someDefault, !2 = $age, !3 = $_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'test'
          1        OP_DATA                                                  1
    3     2        ASSIGN                                                   !1, 2
    5     3        FETCH_DIM_W                                      $6      !0, 'age'
          4        ASSIGN_REF                                       $7      !3, $6
          5        JMP_SET                                          ~8      $7, ->7
          6        QM_ASSIGN                                        ~8      !1
          7        ASSIGN                                                   !2, ~8
    6     8        ECHO                                                     !2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.99 ms | 1384 KiB | 13 Q