3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cb = function ($notification_code , $severity , $message , $message_code , $bytes_transferred , $bytes_max) { var_dump(func_get_args()); }; $ctx = stream_context_set_default(array('http' => array())); stream_context_set_params($ctx, array('notification' => $cb)); file_get_contents("http://www.free.fr");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/npSsm
function name:  (null)
number of ops:  15
compiled vars:  !0 = $cb, !1 = $ctx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FnpSsm%3A3%240'
          1        ASSIGN                                                   !0, ~2
    8     2        INIT_FCALL                                               'stream_context_set_default'
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    9     6        INIT_FCALL                                               'stream_context_set_params'
          7        SEND_VAR                                                 !1
          8        INIT_ARRAY                                       ~6      !0, 'notification'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
   10    11        INIT_FCALL                                               'file_get_contents'
         12        SEND_VAL                                                 'http%3A%2F%2Fwww.free.fr'
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FnpSsm%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/npSsm
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $notification_code, !1 = $severity, !2 = $message, !3 = $message_code, !4 = $bytes_transferred, !5 = $bytes_max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
    5     6        INIT_FCALL                                               'var_dump'
          7        FUNC_GET_ARGS                                    ~6      
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    6    10      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FnpSsm%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.95 ms | 1396 KiB | 21 Q