3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateString = "Wed Jun 08 2016 00:00:00 GMT+0800 (Malay Peninsula Standard Time)"; $dateString = preg_replace("/\(.*\)/","",$dateString); echo date('d/m/Y', strtotime($dateString));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GL8V3
function name:  (null)
number of ops:  16
compiled vars:  !0 = $dateString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Wed+Jun+08+2016+00%3A00%3A00+GMT%2B0800+%28Malay+Peninsula+Standard+Time%29'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%28.%2A%5C%29%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    7     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'd%2Fm%2FY'
          9        INIT_FCALL                                               'strtotime'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        ECHO                                                     $5
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.82 ms | 1398 KiB | 19 Q