3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GhostsAreReal { public function __get($var_name) { return true; } } $ghosts = new GhostsAreReal(); if ( ! isset($ghosts->exist) && $ghosts->exist ) { // language construct echo 'https://media.giphy.com/media/nWVtKOeSJuEfu/source.gif'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 8
filename:       /in/Yro1M
function name:  (null)
number of ops:  11
compiled vars:  !0 = $ghosts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'GhostsAreReal'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        ISSET_ISEMPTY_PROP_OBJ                           ~4      !0, 'exist'
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ_EX                                          ~5      ~5, ->8
   14     6    >   FETCH_OBJ_R                                      ~6      !0, 'exist'
          7        BOOL                                             ~5      ~6
          8    > > JMPZ                                                     ~5, ->10
   16     9    >   ECHO                                                     'https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FnWVtKOeSJuEfu%2Fsource.gif'
   17    10    > > RETURN                                                   1

Class GhostsAreReal:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yro1M
function name:  __get
number of ops:  3
compiled vars:  !0 = $var_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1      > RETURN                                                   <true>
    7     2*     > RETURN                                                   null

End of function __get

End of class GhostsAreReal.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.31 ms | 1393 KiB | 13 Q