3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('http_response_codea')) { function http_response_codea($newcode = NULL) { static $code = 200; if($newcode !== NULL) { header('X-PHP-Response-Code: '.$newcode, true, $newcode); if(!headers_sent()) $code = $newcode; } return $code; } } echo http_response_codea(404);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/KvXpT
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'http_response_codea'
          2        DO_ICALL                                         $0      
          3        BOOL_NOT                                         ~1      $0
          4      > JMPZ                                                     ~1, ->6
    5     5    >   DECLARE_FUNCTION                                         'http_response_codea'
   19     6    >   INIT_FCALL_BY_NAME                                       'http_response_codea'
          7        SEND_VAL_EX                                              404
          8        DO_FCALL                                      0  $2      
          9        ECHO                                                     $2
         10      > RETURN                                                   1

Function %00http_response_codea%2Fin%2FKvXpT%3A5%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 15
filename:       /in/KvXpT
function name:  http_response_codea
number of ops:  17
compiled vars:  !0 = $newcode, !1 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
    7     1        BIND_STATIC                                              !1
    8     2        TYPE_CHECK                                  1020          !0
          3      > JMPZ                                                     ~2, ->15
   10     4    >   INIT_FCALL                                               'header'
          5        CONCAT                                           ~3      'X-PHP-Response-Code%3A+', !0
          6        SEND_VAL                                                 ~3
          7        SEND_VAL                                                 <true>
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   11    10        INIT_FCALL                                               'headers_sent'
         11        DO_ICALL                                         $5      
         12        BOOL_NOT                                         ~6      $5
         13      > JMPZ                                                     ~6, ->15
   12    14    >   ASSIGN                                                   !1, !0
   14    15    > > RETURN                                                   !1
   15    16*     > RETURN                                                   null

End of function %00http_response_codea%2Fin%2FKvXpT%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.39 ms | 1396 KiB | 19 Q