3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); error_reporting(-1); var_dump($_FILES); $tmpImage = file_get_contents($_FILES["file"]["tmp_name"]); $theImage = imagecreatefromstring($tmpImage); var_dump($theImage); $imageColors = imagecolorstotal($theImage); var_dump($imageColors);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K0s2t
function name:  (null)
number of ops:  33
compiled vars:  !0 = $tmpImage, !1 = $theImage, !2 = $imageColors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 -1
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        FETCH_R                      global              ~5      '_FILES'
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'file_get_contents'
         12        FETCH_R                      global              ~7      '_FILES'
         13        FETCH_DIM_R                                      ~8      ~7, 'file'
         14        FETCH_DIM_R                                      ~9      ~8, 'tmp_name'
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !0, $10
    7    18        INIT_FCALL_BY_NAME                                       'imagecreatefromstring'
         19        SEND_VAR_EX                                              !0
         20        DO_FCALL                                      0  $12     
         21        ASSIGN                                                   !1, $12
    8    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
    9    25        INIT_FCALL_BY_NAME                                       'imagecolorstotal'
         26        SEND_VAR_EX                                              !1
         27        DO_FCALL                                      0  $15     
         28        ASSIGN                                                   !2, $15
   10    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.11 ms | 1396 KiB | 21 Q