3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlImage = 'https://commons.wikimedia.org/wiki/File:PNG_transparency_demonstration_2.png'; $imageContent = file_get_contents($urlImage); $encoded = base64_encode($imageContent); echo $encoded;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WIgdK
function name:  (null)
number of ops:  11
compiled vars:  !0 = $urlImage, !1 = $imageContent, !2 = $encoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2FFile%3APNG_transparency_demonstration_2.png'
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        INIT_FCALL                                               'base64_encode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    5     9        ECHO                                                     !2
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.51 ms | 1394 KiB | 17 Q