3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = 'Thu Jul 29 2021 17:47:12 GMT+0530 (India Standard Time)'; echo date('Y-m-d\TH:i:s', strtotime(substr($date, 0, 24)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nv2aE
function name:  (null)
number of ops:  12
compiled vars:  !0 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Thu+Jul+29+2021+17%3A47%3A12+GMT%2B0530+%28India+Standard+Time%29'
    4     1        INIT_FCALL                                                   'date'
          2        SEND_VAL                                                     'Y-m-d%5CTH%3Ai%3As'
          3        INIT_FCALL                                                   'strtotime'
          4        FRAMELESS_ICALL_3                substr              ~2      !0, 0
          5        OP_DATA                                                      24
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                             $4      
         10        ECHO                                                         $4
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.75 ms | 1993 KiB | 15 Q