3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents( '/tmp/short.svg', '<?xml version="1.0" ?><svg' ); echo mime_content_type( '/tmp/short.svg' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L6f9P
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 '%2Ftmp%2Fshort.svg'
          2        SEND_VAL                                                 '%3C%3Fxml+version%3D%221.0%22+%3F%3E%3Csvg'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'mime_content_type'
          5        SEND_VAL                                                 '%2Ftmp%2Fshort.svg'
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.73 ms | 1394 KiB | 17 Q