3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function demo(){ return true; } } $sx = new x(); if(!@$sx->demo()) { echo 'false'; } else { echo 'true'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J4s79
function name:  (null)
number of ops:  13
compiled vars:  !0 = $sx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'x'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    8     3        BEGIN_SILENCE                                    ~4      
          4        INIT_METHOD_CALL                                         !0, 'demo'
          5        DO_FCALL                                      0  $5      
          6        END_SILENCE                                              ~4
          7        BOOL_NOT                                         ~6      $5
          8      > JMPZ                                                     ~6, ->11
    9     9    >   ECHO                                                     'false'
         10      > JMP                                                      ->12
   11    11    >   ECHO                                                     'true'
   12    12    > > RETURN                                                   1

Class x:
Function demo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J4s79
function name:  demo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function demo

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.8 ms | 1394 KiB | 13 Q