3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "Today is - Friday and tomorrow is - Saturday"; var_export( implode('-', array_slice(explode('-', $string, 3), 0, 2)) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xpk6s
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Today+is+-+Friday+and+tomorrow+is+-+Saturday'
    5     1        INIT_FCALL                                                   'var_export'
    6     2        INIT_FCALL                                                   'array_slice'
          3        INIT_FCALL                                                   'explode'
          4        SEND_VAL                                                     '-'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     3
          7        DO_ICALL                                             $2      
          8        SEND_VAR                                                     $2
          9        SEND_VAL                                                     0
         10        SEND_VAL                                                     2
         11        DO_ICALL                                             $3      
         12        FRAMELESS_ICALL_2                implode             ~4      '-', $3
         13        SEND_VAL                                                     ~4
    5    14        DO_ICALL                                                     
    7    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.76 ms | 1714 KiB | 16 Q