3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $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/sYUP8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $person, !1 = $someDefault, !2 = $age, !3 = $_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        ASSIGN_DIM                                               !0, 'test'
          4        OP_DATA                                                  1
    4     5        ASSIGN                                                   !1, 2
    6     6        FETCH_DIM_W                                      $7      !0, 'age'
          7        ASSIGN_REF                                       $8      !3, $7
          8        JMP_SET                                          ~9      $8, ->10
          9        QM_ASSIGN                                        ~9      !1
         10        ASSIGN                                                   !2, ~9
    7    11        ECHO                                                     !2
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.84 ms | 1394 KiB | 15 Q