3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = 'http://www.phpcodepad.com/index.php'; $newfile = 'example.txt'; if (!copy($file, $newfile)) { echo "failed to copy $file...\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/oLWdo
function name:  (null)
number of ops:  13
compiled vars:  !0 = $file, !1 = $newfile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.phpcodepad.com%2Findex.php'
    3     1        ASSIGN                                                   !1, 'example.txt'
    5     2        INIT_FCALL                                               'copy'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        BOOL_NOT                                         ~5      $4
          7      > JMPZ                                                     ~5, ->12
    6     8    >   ROPE_INIT                                     3  ~7      'failed+to+copy+'
          9        ROPE_ADD                                      1  ~7      ~7, !0
         10        ROPE_END                                      2  ~6      ~7, '...%0A'
         11        ECHO                                                     ~6
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.53 ms | 1394 KiB | 15 Q