3v4l.org

run code in 300+ PHP versions simultaneously
<?php $demo="/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAg"; $data = base64_decode($demo); $im = imagecreatefromstring($data); header('Content-Type: image/jpeg'); imagejpeg($im); imagedestroy($im);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LQluk
function name:  (null)
number of ops:  19
compiled vars:  !0 = $demo, !1 = $data, !2 = $im
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F9j%2F4AAQSkZJRgABAQEAYABgAAD%2F2wBDAAIBAQIBAQICAgICAg'
    4     1        INIT_FCALL                                               'base64_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL_BY_NAME                                       'imagecreatefromstring'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !2, $6
    6     9        INIT_FCALL                                               'header'
         10        SEND_VAL                                                 'Content-Type%3A+image%2Fjpeg'
         11        DO_ICALL                                                 
    7    12        INIT_FCALL_BY_NAME                                       'imagejpeg'
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0          
    8    15        INIT_FCALL_BY_NAME                                       'imagedestroy'
         16        SEND_VAR_EX                                              !2
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.44 ms | 1386 KiB | 17 Q