3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $output = fopen('php://stdout', 'w'); fputcsv($output, array('a' => 1, 'b' => 2)); fclose($output); echo ob_get_clean();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JFKNN
function name:  (null)
number of ops:  18
compiled vars:  !0 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL                                               'fopen'
          3        SEND_VAL                                                 'php%3A%2F%2Fstdout'
          4        SEND_VAL                                                 'w'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'fputcsv'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <array>
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'fclose'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'ob_get_clean'
         15        DO_ICALL                                         $6      
         16        ECHO                                                     $6
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.12 ms | 1394 KiB | 23 Q