3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new \IntlDateFormatter('en_US', 2, -1, 'Asia/Macau', 1, 'yyyy-MM-dd'); $intlDateFormatter->setLenient(false); $result = $intlDateFormatter->parse('1980-04-20'); echo $result ? 'ok' : 'fail for 1980-04-20'; echo "\n"; $intlDateFormatter = new \IntlDateFormatter('en_US', 2, -1, 'Asia/Macau', 1, 'yyyy-MM-dd'); $intlDateFormatter->setLenient(false); $result = $intlDateFormatter->parse('1980-04-21'); echo $result ? 'ok' : 'fail for 1980-04-21';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
Branch analysis from position: 41
filename:       /in/koTVg
function name:  (null)
number of ops:  44
compiled vars:  !0 = $intlDateFormatter, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'IntlDateFormatter'
          1        SEND_VAL_EX                                              'en_US'
          2        SEND_VAL_EX                                              2
          3        SEND_VAL_EX                                              -1
          4        SEND_VAL_EX                                              'Asia%2FMacau'
          5        SEND_VAL_EX                                              1
          6        SEND_VAL_EX                                              'yyyy-MM-dd'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $2
    4     9        INIT_METHOD_CALL                                         !0, 'setLenient'
         10        SEND_VAL_EX                                              <false>
         11        DO_FCALL                                      0          
    5    12        INIT_METHOD_CALL                                         !0, 'parse'
         13        SEND_VAL_EX                                              '1980-04-20'
         14        DO_FCALL                                      0  $6      
         15        ASSIGN                                                   !1, $6
    6    16      > JMPZ                                                     !1, ->19
         17    >   QM_ASSIGN                                        ~8      'ok'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~8      'fail+for+1980-04-20'
         20    >   ECHO                                                     ~8
    8    21        ECHO                                                     '%0A'
   10    22        NEW                                              $9      'IntlDateFormatter'
         23        SEND_VAL_EX                                              'en_US'
         24        SEND_VAL_EX                                              2
         25        SEND_VAL_EX                                              -1
         26        SEND_VAL_EX                                              'Asia%2FMacau'
         27        SEND_VAL_EX                                              1
         28        SEND_VAL_EX                                              'yyyy-MM-dd'
         29        DO_FCALL                                      0          
         30        ASSIGN                                                   !0, $9
   11    31        INIT_METHOD_CALL                                         !0, 'setLenient'
         32        SEND_VAL_EX                                              <false>
         33        DO_FCALL                                      0          
   12    34        INIT_METHOD_CALL                                         !0, 'parse'
         35        SEND_VAL_EX                                              '1980-04-21'
         36        DO_FCALL                                      0  $13     
         37        ASSIGN                                                   !1, $13
   13    38      > JMPZ                                                     !1, ->41
         39    >   QM_ASSIGN                                        ~15     'ok'
         40      > JMP                                                      ->42
         41    >   QM_ASSIGN                                        ~15     'fail+for+1980-04-21'
         42    >   ECHO                                                     ~15
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.54 ms | 1399 KiB | 13 Q