3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sendHttpStatus(int $statusCode, string $message) { echo $statusCode. ' ' .$message; } sendHttpStatus(404, "File Not Found"); // integer and string passed sendHttpStatus("403", "OK"); // string "403" coerced to int(403)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LJrRR
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'sendhttpstatus'
          1        SEND_VAL                                                 404
          2        SEND_VAL                                                 'File+Not+Found'
          3        DO_FCALL                                      0          
    8     4        INIT_FCALL                                               'sendhttpstatus'
          5        SEND_VAL                                                 '403'
          6        SEND_VAL                                                 'OK'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function sendhttpstatus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LJrRR
function name:  sendHttpStatus
number of ops:  6
compiled vars:  !0 = $statusCode, !1 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        CONCAT                                           ~2      !0, '+'
          3        CONCAT                                           ~3      ~2, !1
          4        ECHO                                                     ~3
    5     5      > RETURN                                                   null

End of function sendhttpstatus

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.51 ms | 1397 KiB | 15 Q