3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = strtotime('2011-01-01T10:20:30Z'); $t2 = strtotime('2011-01-01 10:20:30'); $f = 'Y-m-d H:i:s'; echo date($f, $t1), PHP_EOL, date($f, $t2), PHP_EO, $t1L, PHP_EOL, $t2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JFVt0
function name:  (null)
number of ops:  26
compiled vars:  !0 = $t1, !1 = $t2, !2 = $f, !3 = $t1L
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2011-01-01T10%3A20%3A30Z'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2011-01-01+10%3A20%3A30'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    5     8        ASSIGN                                                   !2, 'Y-m-d+H%3Ai%3As'
    6     9        INIT_FCALL                                               'date'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        ECHO                                                     $9
         14        ECHO                                                     '%0A'
         15        INIT_FCALL                                               'date'
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19        ECHO                                                     $10
         20        FETCH_CONSTANT                                   ~11     'PHP_EO'
         21        ECHO                                                     ~11
         22        ECHO                                                     !3
         23        ECHO                                                     '%0A'
         24        ECHO                                                     !1
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.45 ms | 1395 KiB | 17 Q