3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'Hello World'; $strArray=explode(" ", $str); $strArray=array_reverse($strArray); $str=implode($strArray, " "); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZfEqQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $strArray
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'Hello+World'
    3     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '+'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
    4     6        INIT_FCALL                                                   'array_reverse'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !1, $5
    5    10        FRAMELESS_ICALL_2                implode             ~7      !1, '+'
         11        ASSIGN                                                       !0, ~7
    6    12        ECHO                                                         !0
    7    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.58 ms | 2168 KiB | 15 Q