3v4l.org

run code in 300+ PHP versions simultaneously
<?php //include('/etc/profile'); include('/tmp/perf-4890.map'); $dir = '/tmp/'; $files1 = scandir($dir); $files2 = scandir($dir, 1); print_r($files1); print_r($files2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rEqMs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dir, !1 = $files1, !2 = $files2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INCLUDE_OR_EVAL                                          '%2Ftmp%2Fperf-4890.map', INCLUDE
   10     1        ASSIGN                                                   !0, '%2Ftmp%2F'
   11     2        INIT_FCALL                                               'scandir'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   12     6        INIT_FCALL                                               'scandir'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   14    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   15    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.62 ms | 1394 KiB | 17 Q