3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting( E_ALL | E_STRICT ); $non_object = false; echo method_exists($non_object,'foo') ? "Impossible\n" : "OK\n";
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/JDFmp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $non_object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <false>
    4     4        INIT_FCALL                                               'method_exists'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'foo'
          7        DO_ICALL                                         $3      
          8      > JMPZ                                                     $3, ->11
          9    >   QM_ASSIGN                                        ~4      'Impossible%0A'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~4      'OK%0A'
         12    >   ECHO                                                     ~4
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.6 ms | 1394 KiB | 17 Q