3v4l.org

run code in 300+ PHP versions simultaneously
<?php function copyFiles($array) { for($i = 0;$i < count($array);$i++){ copy("./".$array[$i],"/$folderlabel/".$array[$i]);} } $files = array ( DSC02425.jpg, DSC02426.jpg, DSC02432.jpg, DSC02437.jpg ); copyFiles($files);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QGq0O
function name:  (null)
number of ops:  21
compiled vars:  !0 = $files
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_CONSTANT                                   ~1      'DSC02425'
          1        FETCH_CONSTANT                                   ~2      'jpg'
          2        CONCAT                                           ~3      ~1, ~2
          3        INIT_ARRAY                                       ~4      ~3
   10     4        FETCH_CONSTANT                                   ~5      'DSC02426'
          5        FETCH_CONSTANT                                   ~6      'jpg'
          6        CONCAT                                           ~7      ~5, ~6
          7        ADD_ARRAY_ELEMENT                                ~4      ~7
   11     8        FETCH_CONSTANT                                   ~8      'DSC02432'
          9        FETCH_CONSTANT                                   ~9      'jpg'
         10        CONCAT                                           ~10     ~8, ~9
         11        ADD_ARRAY_ELEMENT                                ~4      ~10
   12    12        FETCH_CONSTANT                                   ~11     'DSC02437'
         13        FETCH_CONSTANT                                   ~12     'jpg'
         14        CONCAT                                           ~13     ~11, ~12
         15        ADD_ARRAY_ELEMENT                                ~4      ~13
    8    16        ASSIGN                                                   !0, ~4
   15    17        INIT_FCALL                                               'copyfiles'
         18        SEND_VAR                                                 !0
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Function copyfiles:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/QGq0O
function name:  copyFiles
number of ops:  19
compiled vars:  !0 = $array, !1 = $i, !2 = $folderlabel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->15
    5     3    >   INIT_FCALL                                               'copy'
          4        FETCH_DIM_R                                      ~4      !0, !1
          5        CONCAT                                           ~5      '.%2F', ~4
          6        SEND_VAL                                                 ~5
          7        ROPE_INIT                                     3  ~7      '%2F'
          8        ROPE_ADD                                      1  ~7      ~7, !2
          9        ROPE_END                                      2  ~6      ~7, '%2F'
         10        FETCH_DIM_R                                      ~9      !0, !1
         11        CONCAT                                           ~10     ~6, ~9
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                                 
    4    14        PRE_INC                                                  !1
         15    >   COUNT                                            ~13     !0
         16        IS_SMALLER                                               !1, ~13
         17      > JMPNZ                                                    ~14, ->3
    6    18    > > RETURN                                                   null

End of function copyfiles

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.05 ms | 1403 KiB | 16 Q