3v4l.org

run code in 300+ PHP versions simultaneously
<?php // change both dates' formats from d-m-Y to Y-m-d var_export( preg_replace( '~(\d{2})(-\d{2}-)(\d{4}) - (\d{2})(-\d{2}-)(\d{4})~', '$3$2$1 - $6$5$4', '25-05-2020 - 30-05-2020' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iVB6X
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_export'
    5     1        INIT_FCALL                                               'preg_replace'
    6     2        SEND_VAL                                                 '%7E%28%5Cd%7B2%7D%29%28-%5Cd%7B2%7D-%29%28%5Cd%7B4%7D%29+-+%28%5Cd%7B2%7D%29%28-%5Cd%7B2%7D-%29%28%5Cd%7B4%7D%29%7E'
    7     3        SEND_VAL                                                 '%243%242%241+-+%246%245%244'
    8     4        SEND_VAL                                                 '25-05-2020+-+30-05-2020'
    5     5        DO_ICALL                                         $0      
    8     6        SEND_VAR                                                 $0
    4     7        DO_ICALL                                                 
   10     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1009 KiB | 15 Q