3v4l.org

run code in 300+ PHP versions simultaneously
<?php $split_point = ' - '; $string = 'this is my - string - and more'; $result = array_map('strrev', explode($split_point, strrev($string))); print_r($result); $outString = implode('.',$result); echo $outString;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Uv8MX
function name:  (null)
number of ops:  24
compiled vars:  !0 = $split_point, !1 = $string, !2 = $result, !3 = $outString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+-+'
    4     1        ASSIGN                                                   !1, 'this+is+my+-+string+-+and+more'
    6     2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'strrev'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAR                                                 !0
          6        INIT_FCALL                                               'strrev'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    7    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '.'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !3, $11
    9    22        ECHO                                                     !3
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.67 ms | 1395 KiB | 23 Q