3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.2 ms | 1446 KiB | 16 Q