3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors', 1); $r = ini_set('session.save_path', false); $sp = ini_get('session.save_path'); try { $ok = session_start(); } catch (Throwable $e) { echo "THROWN: ", get_class($e), ": ", $e->getMessage(), "\n"; $ok = false; } echo "save_path=[", $sp, "] start=", var_export($ok, true), " sid=", session_id(), "\n"; $_SESSION['t'] = 1; echo "stored=", var_export($_SESSION['t'] ?? null, true), "\n"; echo "files in /tmp: ", count(glob('/tmp/sess_*')), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RlSPL
function name:  (null)
number of ops:  65
compiled vars:  !0 = $r, !1 = $sp, !2 = $ok, !3 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     30719
          2        DO_ICALL                                                     
    3     3        INIT_FCALL                                                   'ini_set'
          4        SEND_VAL                                                     'display_errors'
          5        SEND_VAL                                                     1
          6        DO_ICALL                                                     
    4     7        INIT_FCALL                                                   'ini_set'
          8        SEND_VAL                                                     'session.save_path'
          9        SEND_VAL                                                     <false>
         10        DO_ICALL                                             $6      
         11        ASSIGN                                                       !0, $6
    5    12        INIT_FCALL                                                   'ini_get'
         13        SEND_VAL                                                     'session.save_path'
         14        DO_ICALL                                             $8      
         15        ASSIGN                                                       !1, $8
    6    16        INIT_FCALL                                                   'session_start'
         17        DO_ICALL                                             $10     
         18        ASSIGN                                                       !2, $10
         19      > JMP                                                          ->30
         20  E > > CATCH                                           last         'Throwable'
         21    >   ECHO                                                         'THROWN%3A+'
         22        GET_CLASS                                            ~12     !3
         23        ECHO                                                         ~12
         24        ECHO                                                         '%3A+'
         25        INIT_METHOD_CALL                                             !3, 'getMessage'
         26        DO_FCALL                                          0  $13     
         27        ECHO                                                         $13
         28        ECHO                                                         '%0A'
         29        ASSIGN                                                       !2, <false>
    7    30    >   ECHO                                                         'save_path%3D%5B'
         31        ECHO                                                         !1
         32        ECHO                                                         '%5D+start%3D'
         33        INIT_FCALL                                                   'var_export'
         34        SEND_VAR                                                     !2
         35        SEND_VAL                                                     <true>
         36        DO_ICALL                                             $15     
         37        ECHO                                                         $15
         38        ECHO                                                         '+sid%3D'
         39        INIT_FCALL                                                   'session_id'
         40        DO_ICALL                                             $16     
         41        ECHO                                                         $16
         42        ECHO                                                         '%0A'
    8    43        FETCH_W                          global              $17     '_SESSION'
         44        ASSIGN_DIM                                                   $17, 't'
         45        OP_DATA                                                      1
    9    46        ECHO                                                         'stored%3D'
         47        INIT_FCALL                                                   'var_export'
         48        FETCH_IS                                             ~19     '_SESSION'
         49        FETCH_DIM_IS                                         ~20     ~19, 't'
         50        COALESCE                                             ~21     ~20
         51        QM_ASSIGN                                            ~21     null
         52        SEND_VAL                                                     ~21
         53        SEND_VAL                                                     <true>
         54        DO_ICALL                                             $22     
         55        ECHO                                                         $22
         56        ECHO                                                         '%0A'
   10    57        ECHO                                                         'files+in+%2Ftmp%3A+'
         58        INIT_FCALL                                                   'glob'
         59        SEND_VAL                                                     '%2Ftmp%2Fsess_%2A'
         60        DO_ICALL                                             $23     
         61        COUNT                                                ~24     $23
         62        ECHO                                                         ~24
         63        ECHO                                                         '%0A'
         64      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
142.14 ms | 847 KiB | 16 Q