3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { trigger_error(E_USER_WARNING, 'dsadsa'); return false; } if (!@foo()) { echo 'Hello world', PHP_EOL; } if (@!foo()) { echo 'Hello world', PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/dPINA
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   BEGIN_SILENCE                                        ~0      
          1        INIT_FCALL                                                   'foo'
          2        DO_FCALL                                          0  $1      
          3        END_SILENCE                                                  ~0
          4        BOOL_NOT                                             ~2      $1
          5      > JMPZ                                                         ~2, ->8
    6     6    >   ECHO                                                         'Hello+world'
          7        ECHO                                                         '%0A'
    9     8    >   BEGIN_SILENCE                                        ~3      
          9        INIT_FCALL                                                   'foo'
         10        DO_FCALL                                          0  $4      
         11        BOOL_NOT                                             ~5      $4
         12        END_SILENCE                                                  ~3
         13      > JMPZ                                                         ~5, ->16
   10    14    >   ECHO                                                         'Hello+world'
         15        ECHO                                                         '%0A'
   11    16    > > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPINA
function name:  foo
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'trigger_error'
          1        SEND_VAL                                                     512
          2        SEND_VAL                                                     'dsadsa'
          3        DO_ICALL                                                     
          4      > RETURN                                                       <false>
          5*     > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
181.92 ms | 2178 KiB | 16 Q