3v4l.org

run code in 300+ PHP versions simultaneously
<?php $split_point = ' - '; $string = 'this is my - string - and more'; var_export( array_map('strrev', explode($split_point, strrev($string))) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rUhIX
function name:  (null)
number of ops:  17
compiled vars:  !0 = $split_point, !1 = $string
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                                               'var_export'
    7     3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'strrev'
          5        INIT_FCALL                                               'explode'
          6        SEND_VAR                                                 !0
          7        INIT_FCALL                                               'strrev'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
    6    15        DO_ICALL                                                 
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.95 ms | 1012 KiB | 17 Q