3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new \IntlDateFormatter('en', IntlDateFormatter::MEDIUM, IntlDateFormatter::MEDIUM, new \DateTimeZone('UTC'), 1, 'dd/MM/yyyy hh:mm'); $intlDateFormatter->setLenient(false); var_dump($intlDateFormatter->parse('21/11/2020 13:00')); var_dump(intl_get_error_message());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q7jL8
function name:  (null)
number of ops:  29
compiled vars:  !0 = $intlDateFormatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'IntlDateFormatter'
          1        SEND_VAL_EX                                              'en'
          2        FETCH_CLASS_CONSTANT                             ~2      'IntlDateFormatter', 'MEDIUM'
          3        SEND_VAL_EX                                              ~2
          4        FETCH_CLASS_CONSTANT                             ~3      'IntlDateFormatter', 'MEDIUM'
          5        SEND_VAL_EX                                              ~3
          6        NEW                                              $4      'DateTimeZone'
          7        SEND_VAL_EX                                              'UTC'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $4
         10        SEND_VAL_EX                                              1
         11        SEND_VAL_EX                                              'dd%2FMM%2Fyyyy+hh%3Amm'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !0, $1
    4    14        INIT_METHOD_CALL                                         !0, 'setLenient'
         15        SEND_VAL_EX                                              <false>
         16        DO_FCALL                                      0          
    6    17        INIT_FCALL                                               'var_dump'
         18        INIT_METHOD_CALL                                         !0, 'parse'
         19        SEND_VAL_EX                                              '21%2F11%2F2020+13%3A00'
         20        DO_FCALL                                      0  $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
    8    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL_BY_NAME                                       'intl_get_error_message'
         25        DO_FCALL                                      0  $11     
         26        SEND_VAR                                                 $11
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.43 ms | 1010 KiB | 14 Q