3v4l.org

run code in 500+ PHP versions simultaneously
<?php $cal = IntlCalendar::createInstance(); var_dump($cal->isWeekend(0)); $cal2 = unserialize(serialize($cal)); try { var_dump($cal2->isWeekend(0)); } catch (Error $e) { var_dump($e->getMessage()); } $formatter = new IntlDateFormatter(null, IntlDateFormatter::SHORT, IntlDateFormatter::SHORT); var_dump($formatter->format(0)); $formatter2 = unserialize(serialize($formatter)); try { var_dump($formatter2->format(0)); } catch (Error $e) { var_dump($e->getMessage()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 23
Branch analysis from position: 23
2 jumps found. (Code = 107) Position 1 = 24, Position 2 = -2
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
Found catch point at position: 57
Branch analysis from position: 57
2 jumps found. (Code = 107) Position 1 = 58, Position 2 = -2
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGLnU
function name:  (null)
number of ops:  64
compiled vars:  !0 = $cal, !1 = $cal2, !2 = $e, !3 = $formatter, !4 = $formatter2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                      'IntlCalendar', 'createInstance'
          1        DO_FCALL                                          0  $5      
          2        ASSIGN                                                       !0, $5
    4     3        INIT_FCALL                                                   'var_dump'
          4        INIT_METHOD_CALL                                             !0, 'isWeekend'
          5        SEND_VAL_EX                                                  0
          6        DO_FCALL                                          0  $7      
          7        SEND_VAR                                                     $7
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'unserialize'
         10        INIT_FCALL                                                   'serialize'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                             $9      
         13        SEND_VAR                                                     $9
         14        DO_ICALL                                             $10     
         15        ASSIGN                                                       !1, $10
    8    16        INIT_FCALL                                                   'var_dump'
         17        INIT_METHOD_CALL                                             !1, 'isWeekend'
         18        SEND_VAL_EX                                                  0
         19        DO_FCALL                                          0  $12     
         20        SEND_VAR                                                     $12
         21        DO_ICALL                                                     
         22      > JMP                                                          ->29
    9    23  E > > CATCH                                           last         'Error'
   10    24    >   INIT_FCALL                                                   'var_dump'
         25        INIT_METHOD_CALL                                             !2, 'getMessage'
         26        DO_FCALL                                          0  $14     
         27        SEND_VAR                                                     $14
         28        DO_ICALL                                                     
   13    29    >   NEW                                                  $16     'IntlDateFormatter'
         30        SEND_VAL_EX                                                  null
         31        FETCH_CLASS_CONSTANT                                 ~17     'IntlDateFormatter', 'SHORT'
         32        SEND_VAL_EX                                                  ~17
         33        FETCH_CLASS_CONSTANT                                 ~18     'IntlDateFormatter', 'SHORT'
         34        SEND_VAL_EX                                                  ~18
         35        DO_FCALL                                          0          
         36        ASSIGN                                                       !3, $16
   14    37        INIT_FCALL                                                   'var_dump'
         38        INIT_METHOD_CALL                                             !3, 'format'
         39        SEND_VAL_EX                                                  0
         40        DO_FCALL                                          0  $21     
         41        SEND_VAR                                                     $21
         42        DO_ICALL                                                     
   16    43        INIT_FCALL                                                   'unserialize'
         44        INIT_FCALL                                                   'serialize'
         45        SEND_VAR                                                     !3
         46        DO_ICALL                                             $23     
         47        SEND_VAR                                                     $23
         48        DO_ICALL                                             $24     
         49        ASSIGN                                                       !4, $24
   18    50        INIT_FCALL                                                   'var_dump'
         51        INIT_METHOD_CALL                                             !4, 'format'
         52        SEND_VAL_EX                                                  0
         53        DO_FCALL                                          0  $26     
         54        SEND_VAR                                                     $26
         55        DO_ICALL                                                     
         56      > JMP                                                          ->63
   19    57  E > > CATCH                                           last         'Error'
   20    58    >   INIT_FCALL                                                   'var_dump'
         59        INIT_METHOD_CALL                                             !2, 'getMessage'
         60        DO_FCALL                                          0  $28     
         61        SEND_VAR                                                     $28
         62        DO_ICALL                                                     
   21    63    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.12 ms | 509 KiB | 12 Q