3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ 'lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipiscing', 'elit', ]; shuffle($arr); $result = implode( ' ', array_slice($arr, 2, 2) ); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6XfE
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'shuffle'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
   17     4        INIT_FCALL                                                   'array_slice'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     2
          7        SEND_VAL                                                     2
          8        DO_ICALL                                             $4      
   15     9        FRAMELESS_ICALL_2                implode             ~5      '+', $4
         10        ASSIGN                                                       !1, ~5
   20    11        ECHO                                                         !1
   21    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.27 ms | 1332 KiB | 15 Q