3v4l.org

run code in 300+ PHP versions simultaneously
b<?php $data = array( 'lala', 'tralala' ); $buffer = fopen('php://temp', 'r+'); fputcsv($buffer, $data, ',', ' '); rewind($buffer); $csv = fgets($buffer); fclose($buffer);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qat0I
function name:  (null)
number of ops:  24
compiled vars:  !0 = $data, !1 = $buffer, !2 = $csv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'b'
    2     1        ASSIGN                                                   !0, <array>
    6     2        INIT_FCALL                                               'fopen'
          3        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          4        SEND_VAL                                                 'r%2B'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    7     7        INIT_FCALL                                               'fputcsv'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '%2C'
         11        SEND_VAL                                                 '+'
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'rewind'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'fgets'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !2, $8
   10    20        INIT_FCALL                                               'fclose'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.57 ms | 1386 KiB | 23 Q