3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_serializable($_){return is_string($_)||is_array($_)||is_null($_)||@serialize($_);} $a = 'dsfs'; print is_serializable($a); // create a new cURL resource $ch = curl_init(); print is_serializable($ch); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5I0T3
function name:  (null)
number of ops:  31
compiled vars:  !0 = $a, !1 = $ch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'dsfs'
    5     1        INIT_FCALL                                               'is_serializable'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ECHO                                                     $3
    8     5        INIT_FCALL_BY_NAME                                       'curl_init'
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !1, $4
   10     8        INIT_FCALL                                               'is_serializable'
          9        SEND_VAR                                                 !1
         10        DO_FCALL                                      0  $6      
         11        ECHO                                                     $6
   14    12        INIT_FCALL_BY_NAME                                       'curl_setopt'
         13        SEND_VAR_EX                                              !1
         14        FETCH_CONSTANT                                   ~7      'CURLOPT_URL'
         15        SEND_VAL_EX                                              ~7
         16        SEND_VAL_EX                                              'http%3A%2F%2Fwww.example.com%2F'
         17        DO_FCALL                                      0          
   15    18        INIT_FCALL_BY_NAME                                       'curl_setopt'
         19        SEND_VAR_EX                                              !1
         20        FETCH_CONSTANT                                   ~9      'CURLOPT_HEADER'
         21        SEND_VAL_EX                                              ~9
         22        SEND_VAL_EX                                              0
         23        DO_FCALL                                      0          
   18    24        INIT_FCALL_BY_NAME                                       'curl_exec'
         25        SEND_VAR_EX                                              !1
         26        DO_FCALL                                      0          
   21    27        INIT_FCALL_BY_NAME                                       'curl_close'
         28        SEND_VAR_EX                                              !1
         29        DO_FCALL                                      0          
         30      > RETURN                                                   1

Function is_serializable:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/5I0T3
function name:  is_serializable
number of ops:  17
compiled vars:  !0 = $_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        TYPE_CHECK                                   64  ~1      !0
          2      > JMPNZ_EX                                         ~1      ~1, ->5
          3    >   TYPE_CHECK                                  128  ~2      !0
          4        BOOL                                             ~1      ~2
          5    > > JMPNZ_EX                                         ~1      ~1, ->8
          6    >   TYPE_CHECK                                    2  ~3      !0
          7        BOOL                                             ~1      ~3
          8    > > JMPNZ_EX                                         ~1      ~1, ->15
          9    >   BEGIN_SILENCE                                    ~4      
         10        INIT_FCALL                                               'serialize'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        END_SILENCE                                              ~4
         14        BOOL                                             ~1      $5
         15    > > RETURN                                                   ~1
         16*     > RETURN                                                   null

End of function is_serializable

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.76 ms | 1403 KiB | 17 Q