3v4l.org

run code in 300+ 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:  19
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                                               'implode'
          3        SEND_VAL                                                 '-'
          4        INIT_FCALL                                               'array_slice'
          5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '-'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 3
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
    5    17        DO_ICALL                                                 
    7    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
203.7 ms | 1004 KiB | 17 Q