3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serialized_data = serialize(array('Math', 'Language', 'Science')); echo $serialized_data . '<br>'; // Unserialize the data $var1 = unserialize($serialized_data); // Show the unserialized data; foreach ($serialized_data[0] as $desg): echo $desg; endforeach; print_r(unserialize($serialized_data)); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/aZpqk
function name:  (null)
number of ops:  23
compiled vars:  !0 = $serialized_data, !1 = $var1, !2 = $desg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'serialize'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        CONCAT                                           ~5      !0, '%3Cbr%3E'
          5        ECHO                                                     ~5
    5     6        INIT_FCALL                                               'unserialize'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    7    10        FETCH_DIM_R                                      ~8      !0, 0
         11      > FE_RESET_R                                       $9      ~8, ->15
         12    > > FE_FETCH_R                                               $9, !2, ->15
    8    13    >   ECHO                                                     !2
    7    14      > JMP                                                      ->12
         15    >   FE_FREE                                                  $9
   10    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'unserialize'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
   11    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.37 ms | 1395 KiB | 19 Q