3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $severity, string $message, string $file, int $line) { throw new ErrorException($message, $severity, $severity, $file, $line); }); if (!$resource = @stream_socket_client('tcp://123.456.789', $errno, $errstr)) { throw new Exception($errstr); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e3vc2
function name:  (null)
number of ops:  19
compiled vars:  !0 = $resource, !1 = $errno, !2 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fe3vc2%3A2%240'
    4     2        SEND_VAL                                                 ~3
          3        DO_ICALL                                                 
    6     4        BEGIN_SILENCE                                    ~5      
          5        INIT_FCALL                                               'stream_socket_client'
          6        SEND_VAL                                                 'tcp%3A%2F%2F123.456.789'
          7        SEND_REF                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                         $6      
         10        END_SILENCE                                              ~5
         11        ASSIGN                                           ~7      !0, $6
         12        BOOL_NOT                                         ~8      ~7
         13      > JMPZ                                                     ~8, ->18
    7    14    >   NEW                                              $9      'Exception'
         15        SEND_VAR_EX                                              !2
         16        DO_FCALL                                      0          
         17      > THROW                                         0          $9
    8    18    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fe3vc2%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/e3vc2
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $severity, !1 = $message, !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        NEW                                              $4      'ErrorException'
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !0
          8        SEND_VAR_EX                                              !2
          9        SEND_VAR_EX                                              !3
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $4
    4    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fe3vc2%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.06 ms | 1396 KiB | 17 Q