3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod(new DateTime(), new DateInterval('P1D'), new DateTime('+1 day')); $serialized = serialize($period); var_dump(serialize($serialized)); $object = unserialize($serialized); foreach ($object as $a) { echo get_class($a) . "\n"; } var_dump($object);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 78) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/IZYjl
function name:  (null)
number of ops:  39
compiled vars:  !0 = $period, !1 = $serialized, !2 = $object, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DatePeriod'
          1        NEW                                              $5      'DateTime'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $5
          4        NEW                                              $7      'DateInterval'
          5        SEND_VAL_EX                                              'P1D'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $7
          8        NEW                                              $9      'DateTime'
          9        SEND_VAL_EX                                              '%2B1+day'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $9
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !0, $4
    4    14        INIT_FCALL                                               'serialize'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $13     
         17        ASSIGN                                                   !1, $13
    5    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'serialize'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $15     
         22        SEND_VAR                                                 $15
         23        DO_ICALL                                                 
    8    24        INIT_FCALL                                               'unserialize'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !2, $17
    9    28      > FE_RESET_R                                       $19     !2, ->34
         29    > > FE_FETCH_R                                               $19, !3, ->34
   10    30    >   GET_CLASS                                        ~20     !3
         31        CONCAT                                           ~21     ~20, '%0A'
         32        ECHO                                                     ~21
    9    33      > JMP                                                      ->29
         34    >   FE_FREE                                                  $19
   13    35        INIT_FCALL                                               'var_dump'
         36        SEND_VAR                                                 !2
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1396 KiB | 19 Q