3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($x = 0; $x < 101; $x++) { $a[] = sprintf('%1$03d.jpg', $x); } echo "<br>\n<br>\nmixed up: <br>\n<br>\n"; // mix up order shuffle($a); print_r($a); echo "<br>\n<br>\nsorted: <br>\n<br>\n"; // sort it natsort($a); print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/HD8V8
function name:  (null)
number of ops:  26
compiled vars:  !0 = $x, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
    5     2    >   INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 '%251%2403d.jpg'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  $4
    3     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 101
         10      > JMPNZ                                                    ~6, ->2
    8    11    >   ECHO                                                     '%3Cbr%3E%0A%3Cbr%3E%0Amixed+up%3A+%3Cbr%3E%0A%3Cbr%3E%0A'
   10    12        INIT_FCALL                                               'shuffle'
         13        SEND_REF                                                 !1
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   13    18        ECHO                                                     '%3Cbr%3E%0A%3Cbr%3E%0Asorted%3A+%3Cbr%3E%0A%3Cbr%3E%0A'
   15    19        INIT_FCALL                                               'natsort'
         20        SEND_REF                                                 !1
         21        DO_ICALL                                                 
   16    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.38 ms | 1395 KiB | 21 Q