3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = base64_decode('R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs='); $resource = fopen('php://tmp', w); fwrite($resource, $string); fclose($resource); var_dump(mime_content_type('php://tmp'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nsNGN
function name:  (null)
number of ops:  24
compiled vars:  !0 = $string, !1 = $resource
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'base64_decode'
          1        SEND_VAL                                                 'R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs%3D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 'php%3A%2F%2Ftmp'
          6        FETCH_CONSTANT                                   ~4      'w'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10        INIT_FCALL                                               'fwrite'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'fclose'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'mime_content_type'
         19        SEND_VAL                                                 'php%3A%2F%2Ftmp'
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1395 KiB | 25 Q