3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = new \IntlDateFormatter( 'en_US', IntlDateFormatter::MEDIUM, IntlDateFormatter::MEDIUM, new DateTimeZone('Asia/Shanghai'), IntlDateFormatter::GREGORIAN, 'Y-m-d H:i:s'); $t->setLenient(false); $timestamp = $t->parse('2019-09-18 18:58:08'); var_dump(date('r', $timestamp));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OPdu1
function name:  (null)
number of ops:  30
compiled vars:  !0 = $t, !1 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'IntlDateFormatter'
    4     1        SEND_VAL_EX                                              'en_US'
    5     2        FETCH_CLASS_CONSTANT                             ~3      'IntlDateFormatter', 'MEDIUM'
          3        SEND_VAL_EX                                              ~3
    6     4        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'MEDIUM'
          5        SEND_VAL_EX                                              ~4
    7     6        NEW                                              $5      'DateTimeZone'
          7        SEND_VAL_EX                                              'Asia%2FShanghai'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $5
    8    10        FETCH_CLASS_CONSTANT                             ~7      'IntlDateFormatter', 'GREGORIAN'
         11        SEND_VAL_EX                                              ~7
    9    12        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
    3    13        DO_FCALL                                      0          
         14        ASSIGN                                                   !0, $2
   10    15        INIT_METHOD_CALL                                         !0, 'setLenient'
         16        SEND_VAL_EX                                              <false>
         17        DO_FCALL                                      0          
   11    18        INIT_METHOD_CALL                                         !0, 'parse'
         19        SEND_VAL_EX                                              '2019-09-18+18%3A58%3A08'
         20        DO_FCALL                                      0  $11     
         21        ASSIGN                                                   !1, $11
   12    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'date'
         24        SEND_VAL                                                 'r'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $13     
         27        SEND_VAR                                                 $13
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.31 ms | 1011 KiB | 15 Q