3v4l.org

run code in 300+ 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:  16
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                                                 
   15     4        INIT_FCALL                                               'implode'
   16     5        SEND_VAL                                                 '+'
   17     6        INIT_FCALL                                               'array_slice'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 2
          9        SEND_VAL                                                 2
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
   15    13        ASSIGN                                                   !1, $5
   20    14        ECHO                                                     !1
   21    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.34 ms | 1398 KiB | 19 Q