3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file1 = '/somefile.jpg'; $file2 = 'file://shouldbelocal.jpg'; $file3 = 'http://someotherfile.jpg'; $local = stream_is_local($file1); $shouldbelocal = stream_is_local($file2); $remote = stream_is_local($file3); var_dump($local, $shouldbelocal, $remote);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ULCni
function name:  (null)
number of ops:  21
compiled vars:  !0 = $file1, !1 = $file2, !2 = $file3, !3 = $local, !4 = $shouldbelocal, !5 = $remote
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fsomefile.jpg'
    4     1        ASSIGN                                                   !1, 'file%3A%2F%2Fshouldbelocal.jpg'
    5     2        ASSIGN                                                   !2, 'http%3A%2F%2Fsomeotherfile.jpg'
    7     3        INIT_FCALL                                               'stream_is_local'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !3, $9
    8     7        INIT_FCALL                                               'stream_is_local'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $11     
         10        ASSIGN                                                   !4, $11
    9    11        INIT_FCALL                                               'stream_is_local'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !5, $13
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        SEND_VAR                                                 !4
         18        SEND_VAR                                                 !5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.83 ms | 1395 KiB | 17 Q