3v4l.org

run code in 500+ PHP versions simultaneously
<?php ob_start(); $res = setcookie('has_session', 1, ['expires' => 1, 'foobarbaz' => 42]); echo ob_end_clean(), PHP_EOL; var_dump($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h4dWr
function name:  (null)
number of ops:  16
compiled vars:  !0 = $res
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'ob_start'
          1        DO_ICALL                                                     
    4     2        INIT_FCALL                                                   'setcookie'
          3        SEND_VAL                                                     'has_session'
          4        SEND_VAL                                                     1
          5        SEND_VAL                                                     <array>
          6        DO_ICALL                                             $2      
          7        ASSIGN                                                       !0, $2
    5     8        INIT_FCALL                                                   'ob_end_clean'
          9        DO_ICALL                                             $4      
         10        ECHO                                                         $4
         11        ECHO                                                         '%0A'
    6    12        INIT_FCALL                                                   'var_dump'
         13        SEND_VAR                                                     !0
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
130.17 ms | 481 KiB | 11 Q