3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { $person['test'] =1; $someDefault = 2; return ($_=& $person['age']) ?: $someDefault; } echo test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gKS5d
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gKS5d
function name:  test
number of ops:  9
compiled vars:  !0 = $person, !1 = $someDefault, !2 = $_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'test'
          1        OP_DATA                                                  1
    4     2        ASSIGN                                                   !1, 2
    6     3        FETCH_DIM_W                                      $5      !0, 'age'
          4        ASSIGN_REF                                       $6      !2, $5
          5        JMP_SET                                          ~7      $6, ->7
          6        QM_ASSIGN                                        ~7      !1
          7      > RETURN                                                   ~7
    7     8*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.74 ms | 1397 KiB | 14 Q