3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 't'; $iterations = 100000; foreach(range(0, $iterations) as $i) { list($a, $b) = ($test === 'test' || $test === 't') ? array('a', 'b') : array('c', 'de'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/obcKH
function name:  (null)
number of ops:  24
compiled vars:  !0 = $test, !1 = $iterations, !2 = $i, !3 = $a, !4 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 't'
    3     1        ASSIGN                                                   !1, 100000
    5     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6      > FE_RESET_R                                       $8      $7, ->22
          7    > > FE_FETCH_R                                               $8, !2, ->22
    6     8    >   IS_IDENTICAL                                     ~9      !0, 'test'
          9      > JMPNZ_EX                                         ~9      ~9, ->12
         10    >   IS_IDENTICAL                                     ~10     !0, 't'
         11        BOOL                                             ~9      ~10
         12    > > JMPZ                                                     ~9, ->15
         13    >   QM_ASSIGN                                        ~11     <array>
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~11     <array>
         16    >   FETCH_LIST_R                                     $12     ~11, 0
         17        ASSIGN                                                   !3, $12
         18        FETCH_LIST_R                                     $14     ~11, 1
         19        ASSIGN                                                   !4, $14
         20        FREE                                                     ~11
    5    21      > JMP                                                      ->7
         22    >   FE_FREE                                                  $8
    7    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.76 ms | 1396 KiB | 15 Q