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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WtRep
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
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  $2      
          4        ECHO                                                     $2
          5      > 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/WtRep
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:
162.87 ms | 1398 KiB | 16 Q