3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (@readfile('/foo') === false) { error_log('foo', 3, '/log.log'); } header('HTTP/1.1 404 Not Found'); echo "foo";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/sunlJ
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~0      
          1        INIT_FCALL                                               'readfile'
          2        SEND_VAL                                                 '%2Ffoo'
          3        DO_ICALL                                         $1      
          4        END_SILENCE                                              ~0
          5        TYPE_CHECK                                    4          $1
          6      > JMPZ                                                     ~2, ->12
    4     7    >   INIT_FCALL                                               'error_log'
          8        SEND_VAL                                                 'foo'
          9        SEND_VAL                                                 3
         10        SEND_VAL                                                 '%2Flog.log'
         11        DO_ICALL                                                 
    6    12    >   INIT_FCALL                                               'header'
         13        SEND_VAL                                                 'HTTP%2F1.1+404+Not+Found'
         14        DO_ICALL                                                 
    7    15        ECHO                                                     'foo'
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.2 ms | 1394 KiB | 19 Q