3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = fopen('php://stdout', 'w'); $a = array(array('foo', 'bar'), array('bar', 'baz')); foreach ($a as $row) { fputcsv($f, $row, ';'); } fclose($f);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/YZTcK
function name:  (null)
number of ops:  19
compiled vars:  !0 = $f, !1 = $a, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Fstdout'
          2        SEND_VAL                                                 'w'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        ASSIGN                                                   !1, <array>
    4     6      > FE_RESET_R                                       $6      !1, ->14
          7    > > FE_FETCH_R                                               $6, !2, ->14
    5     8    >   INIT_FCALL                                               'fputcsv'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 '%3B'
         12        DO_ICALL                                                 
    4    13      > JMP                                                      ->7
         14    >   FE_FREE                                                  $6
    7    15        INIT_FCALL                                               'fclose'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.34 ms | 1395 KiB | 19 Q