3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new IntlDateFormatter('it', 2, -1, 'Europe/Rome', 1, 'dd/MM/yyyy'); $intlDateFormatter->setLenient(false); $date = '28/05/1972'; // $intlDateFormatter->setLenient(true); $res = $intlDateFormatter->parse($date); var_dump($intlDateFormatter->getErrorMessage());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dqIsG
function name:  (null)
number of ops:  23
compiled vars:  !0 = $intlDateFormatter, !1 = $date, !2 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'IntlDateFormatter'
          1        SEND_VAL_EX                                              'it'
          2        SEND_VAL_EX                                              2
          3        SEND_VAL_EX                                              -1
          4        SEND_VAL_EX                                              'Europe%2FRome'
          5        SEND_VAL_EX                                              1
          6        SEND_VAL_EX                                              'dd%2FMM%2Fyyyy'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $3
    4     9        INIT_METHOD_CALL                                         !0, 'setLenient'
         10        SEND_VAL_EX                                              <false>
         11        DO_FCALL                                      0          
    6    12        ASSIGN                                                   !1, '28%2F05%2F1972'
    8    13        INIT_METHOD_CALL                                         !0, 'parse'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $8      
         16        ASSIGN                                                   !2, $8
    9    17        INIT_FCALL                                               'var_dump'
         18        INIT_METHOD_CALL                                         !0, 'getErrorMessage'
         19        DO_FCALL                                      0  $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.97 ms | 1399 KiB | 15 Q