3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $i = 1000; while($i--) { $array = range(1000, 1); $a = array_shift(array_slice($array, 0, 1)); } echo $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 5
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 5
Branch analysis from position: 21
Branch analysis from position: 5
filename:       /in/BCTRZ
function name:  (null)
number of ops:  23
compiled vars:  !0 = $i, !1 = $array, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 1000
    4     4      > JMP                                                      ->19
    6     5    >   INIT_FCALL                                               'range'
          6        SEND_VAL                                                 1000
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    7    10        INIT_FCALL                                               'array_shift'
         11        INIT_FCALL                                               'array_slice'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $7      
         16        SEND_VAR_NO_REF                               0          $7
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !2, $8
    4    19    >   POST_DEC                                         ~10     !0
         20      > JMPNZ                                                    ~10, ->5
    9    21    >   ECHO                                                     !2
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.53 ms | 1395 KiB | 21 Q