3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Validation rules $validator = \Validator::make( \Input::all(), [ 'category' => 'required|integer|exists:categories,id', 'document' => 'required|unique:documents,filename|between:0,1048576|mimes:7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip', 'name' => 'required|max:100|unique:documents', 'details' => 'max:255', ] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tLkeG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $validator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                  'Validator', 'make'
    5     1        INIT_STATIC_METHOD_CALL                                  'Input', 'all'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR_NO_REF_EX                                       $1
    7     4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0  $2      
    4     6        ASSIGN                                                   !0, $2
   12     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.02 ms | 1392 KiB | 13 Q