3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('Hello','World!','Beautiful','Day!'); print_r($arr); $newdata = preg_replace(' ', ',', implode(' ',$arr)); echo $newdata;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sP7Ts
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $newdata
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '+'
          6        SEND_VAL                                                 '%2C'
          7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    8    14        ECHO                                                     !1
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.77 ms | 1398 KiB | 19 Q