3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir=@opendir('/'); $a=array(); while(($f=readdir($dir))){$a[]=$f;}; sort($a); print(join("\n",$a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/W8Knp
function name:  (null)
number of ops:  24
compiled vars:  !0 = $dir, !1 = $a, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BEGIN_SILENCE                                    ~3      
          1        INIT_FCALL                                               'opendir'
          2        SEND_VAL                                                 '%2F'
          3        DO_ICALL                                         $4      
          4        END_SILENCE                                              ~3
          5        ASSIGN                                                   !0, $4
    3     6        ASSIGN                                                   !1, <array>
    4     7      > JMP                                                      ->10
          8    >   ASSIGN_DIM                                               !1
          9        OP_DATA                                                  !2
         10    >   INIT_FCALL                                               'readdir'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        ASSIGN                                           ~9      !2, $8
         14      > JMPNZ                                                    ~9, ->8
    5    15    >   INIT_FCALL                                               'sort'
         16        SEND_REF                                                 !1
         17        DO_ICALL                                                 
    6    18        INIT_FCALL                                               'join'
         19        SEND_VAL                                                 '%0A'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $11     
         22        ECHO                                                     $11
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.8 ms | 1395 KiB | 21 Q