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)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/npH2g
function name:  (null)
number of ops:  15
compiled vars:  !0 = $split_point, !1 = $string, !2 = $result
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                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
217.19 ms | 1394 KiB | 19 Q