3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = './'; $total = PHP_INT_MAX + 1337; for ($i = 0; $i < $total; ++$i) { $filename = $dir . str_pad($i, 6, '0', STR_PAD_LEFT); touch($filename); } $files = scandir($dir); echo 'scandir: ' . (count($files) - 2) . '/' . $total. PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
filename:       /in/cFRiJ
function name:  (null)
number of ops:  30
compiled vars:  !0 = $dir, !1 = $total, !2 = $i, !3 = $filename, !4 = $files
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '.%2F'
    4     1        ASSIGN                                                   !1, 9.22337e+18
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->16
    7     4    >   INIT_FCALL                                               'str_pad'
          5        SEND_VAR                                                 !2
          6        SEND_VAL                                                 6
          7        SEND_VAL                                                 '0'
          8        SEND_VAL                                                 0
          9        DO_ICALL                                         $8      
         10        CONCAT                                           ~9      !0, $8
         11        ASSIGN                                                   !3, ~9
    8    12        INIT_FCALL                                               'touch'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
    6    15        PRE_INC                                                  !2
         16    >   IS_SMALLER                                               !2, !1
         17      > JMPNZ                                                    ~13, ->4
   12    18    >   INIT_FCALL                                               'scandir'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !4, $14
   13    22        COUNT                                            ~16     !4
         23        SUB                                              ~17     ~16, 2
         24        CONCAT                                           ~18     'scandir%3A+', ~17
         25        CONCAT                                           ~19     ~18, '%2F'
         26        CONCAT                                           ~20     ~19, !1
         27        CONCAT                                           ~21     ~20, '%0A'
         28        ECHO                                                     ~21
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.95 ms | 1396 KiB | 19 Q