3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '5.6.7') return; $a = array('toolbox', 'tray'); for($i = 0; $i < 3; $i++) { shuffle($a); echo reset($a); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/AY44j
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $2      
          2        IS_NOT_EQUAL                                             $2, '5.6.7'
          3      > JMPZ                                                     ~3, ->5
    4     4    > > RETURN                                                   null
    7     5    >   ASSIGN                                                   !0, <array>
    9     6        ASSIGN                                                   !1, 0
          7      > JMP                                                      ->16
   11     8    >   INIT_FCALL                                               'shuffle'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'reset'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
    9    15        PRE_INC                                                  !1
         16    >   IS_SMALLER                                               !1, 3
         17      > JMPNZ                                                    ~9, ->8
   13    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.94 ms | 1395 KiB | 19 Q