3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo preg_replace_callback('/(\d\d?:\d\d)-(\d\d?:\d\d)/', function($match){ return ' ' . date('H:i', strtotime($match[1])) . '-' . date('H:i', strtotime($match[2])); }, 'mo-sa9:00-20:00uhr');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K1voc
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'preg_replace_callback'
          1        SEND_VAL                                                     '%2F%28%5Cd%5Cd%3F%3A%5Cd%5Cd%29-%28%5Cd%5Cd%3F%3A%5Cd%5Cd%29%2F'
          2        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    4     3        SEND_VAL                                                     ~0
          4        SEND_VAL                                                     'mo-sa9%3A00-20%3A00uhr'
    2     5        DO_ICALL                                             $1      
    4     6        ECHO                                                         $1
          7      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K1voc
function name:  {closure:/in/K1voc:2}
number of ops:  22
compiled vars:  !0 = $match
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
    3     1        INIT_FCALL                                                   'date'
          2        SEND_VAL                                                     'H%3Ai'
          3        INIT_FCALL                                                   'strtotime'
          4        FETCH_DIM_R                                          ~1      !0, 1
          5        SEND_VAL                                                     ~1
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                             $3      
          9        CONCAT                                               ~4      '+', $3
         10        CONCAT                                               ~5      ~4, '-'
         11        INIT_FCALL                                                   'date'
         12        SEND_VAL                                                     'H%3Ai'
         13        INIT_FCALL                                                   'strtotime'
         14        FETCH_DIM_R                                          ~6      !0, 2
         15        SEND_VAL                                                     ~6
         16        DO_ICALL                                             $7      
         17        SEND_VAR                                                     $7
         18        DO_ICALL                                             $8      
         19        CONCAT                                               ~9      ~5, $8
         20      > RETURN                                                       ~9
    4    21*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
146.93 ms | 1880 KiB | 16 Q