3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = []; for ($i=0; $i<9999; $i++) { $data[] = $i; } $found = false; while (!$found && list(,$a) = each($data)) { $found = $a > 1000; } echo $val;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 10
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
Branch analysis from position: 20
Branch analysis from position: 20
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/nSPJt
function name:  (null)
number of ops:  23
compiled vars:  !0 = $data, !1 = $i, !2 = $found, !3 = $a, !4 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->6
    5     3    >   ASSIGN_DIM                                               !0
          4        OP_DATA                                                  !1
    4     5        PRE_INC                                                  !1
          6    >   IS_SMALLER                                               !1, 9999
          7      > JMPNZ                                                    ~9, ->3
    8     8    >   ASSIGN                                                   !2, <false>
    9     9      > JMP                                                      ->12
   10    10    >   IS_SMALLER                                       ~11     1000, !3
         11        ASSIGN                                                   !2, ~11
    9    12    >   BOOL_NOT                                         ~13     !2
         13      > JMPZ_EX                                          ~13     ~13, ->20
         14    >   INIT_FCALL_BY_NAME                                       'each'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $14     
         17        FETCH_LIST_R                                     $15     $14, 1
         18        ASSIGN                                                   !3, $15
         19        BOOL                                             ~13     $14
         20    > > JMPNZ                                                    ~13, ->10
   13    21    >   ECHO                                                     !4
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.07 ms | 1390 KiB | 17 Q