3v4l.org

run code in 300+ PHP versions simultaneously
<?php $objTarget = null; $objPage = new \stdClass; $objPage->getFrontendUrl = 'test'; var_export(array( ($objTarget ?: $objPage)->getFrontendUrl ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DVi1e
function name:  (null)
number of ops:  14
compiled vars:  !0 = $objTarget, !1 = $objPage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    5     4        ASSIGN_OBJ                                               !1, 'getFrontendUrl'
          5        OP_DATA                                                  'test'
    6     6        INIT_FCALL                                               'var_export'
    7     7        JMP_SET                                          ~7      !0, ->9
          8        QM_ASSIGN                                        ~7      !1
          9        FETCH_OBJ_R                                      ~8      ~7, 'getFrontendUrl'
         10        INIT_ARRAY                                       ~9      ~8
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
    8    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.35 ms | 1394 KiB | 15 Q