3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d H:i', strtotime(preg_replace('/([\d]{1,2})\/([\d]{1,2})\/([\d]{4})/', '$3-$1-$2', '8/4/2014')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W2ouc
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai'
          2        INIT_FCALL                                               'strtotime'
          3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2F%28%5B%5Cd%5D%7B1%2C2%7D%29%5C%2F%28%5B%5Cd%5D%7B1%2C2%7D%29%5C%2F%28%5B%5Cd%5D%7B4%7D%29%2F'
          5        SEND_VAL                                                 '%243-%241-%242'
          6        SEND_VAL                                                 '8%2F4%2F2014'
          7        DO_ICALL                                         $0      
          8        SEND_VAR                                                 $0
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        ECHO                                                     $2
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.59 ms | 1394 KiB | 19 Q