3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($code, $msg, $file, $line) { fwrite(\STDERR, "$msg in file $file on line $line\n"); }); $foo = $bar; ini_set('session.name', 'SID'); echo ini_get('session.name'), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3lEcj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    4     2        SEND_VAL                                                 ~2
    2     3        DO_ICALL                                                 
    6     4        ASSIGN                                                   !0, !1
    7     5        INIT_FCALL                                               'ini_set'
          6        SEND_VAL                                                 'session.name'
          7        SEND_VAL                                                 'SID'
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'ini_get'
         10        SEND_VAL                                                 'session.name'
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
         13        ECHO                                                     '%0A'
    9    14      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3lEcj
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $code, !1 = $msg, !2 = $file, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    3     4        INIT_FCALL                                               'fwrite'
          5        FETCH_CONSTANT                                   ~4      'STDERR'
          6        SEND_VAL                                                 ~4
          7        ROPE_INIT                                     6  ~6      !1
          8        ROPE_ADD                                      1  ~6      ~6, '+in+file+'
          9        ROPE_ADD                                      2  ~6      ~6, !2
         10        ROPE_ADD                                      3  ~6      ~6, '+on+line+'
         11        ROPE_ADD                                      4  ~6      ~6, !3
         12        ROPE_END                                      5  ~5      ~6, '%0A'
         13        SEND_VAL                                                 ~5
         14        DO_ICALL                                                 
    4    15      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.82 ms | 1002 KiB | 17 Q