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, $timeout, $flags)) { throw new Exception($errstr); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rhX20
function name:  (null)
number of ops:  21
compiled vars:  !0 = $resource, !1 = $errno, !2 = $errstr, !3 = $timeout, !4 = $flags
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%2FrhX20%3A2%240'
    4     2        SEND_VAL                                                 ~5
          3        DO_ICALL                                                 
    6     4        BEGIN_SILENCE                                    ~7      
          5        INIT_FCALL                                               'stream_socket_client'
          6        SEND_VAL                                                 'tcp%3A%2F%2F123.456.789'
          7        SEND_REF                                                 !1
          8        SEND_REF                                                 !2
          9        SEND_VAR                                                 !3
         10        SEND_VAR                                                 !4
         11        DO_ICALL                                         $8      
         12        END_SILENCE                                              ~7
         13        ASSIGN                                           ~9      !0, $8
         14        BOOL_NOT                                         ~10     ~9
         15      > JMPZ                                                     ~10, ->20
    7    16    >   NEW                                              $11     'Exception'
         17        SEND_VAR_EX                                              !2
         18        DO_FCALL                                      0          
         19      > THROW                                         0          $11
    8    20    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FrhX20%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/rhX20
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%2FrhX20%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.19 ms | 1396 KiB | 17 Q