3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(array(STDIN,STDOUT,STDERR,tmpfile()) as $resource){ var_dump(unserialize(serialize($resource))); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/hcPKv
function name:  (null)
number of ops:  23
compiled vars:  !0 = $resource
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~1      'STDIN'
          1        INIT_ARRAY                                       ~2      ~1
          2        FETCH_CONSTANT                                   ~3      'STDOUT'
          3        ADD_ARRAY_ELEMENT                                ~2      ~3
          4        FETCH_CONSTANT                                   ~4      'STDERR'
          5        ADD_ARRAY_ELEMENT                                ~2      ~4
          6        INIT_FCALL                                               'tmpfile'
          7        DO_ICALL                                         $5      
          8        ADD_ARRAY_ELEMENT                                ~2      $5
          9      > FE_RESET_R                                       $6      ~2, ->21
         10    > > FE_FETCH_R                                               $6, !0, ->21
    3    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'unserialize'
         13        INIT_FCALL                                               'serialize'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                                 
    2    20      > JMP                                                      ->10
         21    >   FE_FREE                                                  $6
    4    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.12 ms | 1395 KiB | 21 Q