3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_serializable($_){ try { return serialize($_)!=''; } catch (Exception $e) { return 0; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bD00P
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   1

Function is_serializable:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bD00P
function name:  is_serializable
number of ops:  10
compiled vars:  !0 = $_, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'serialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        IS_NOT_EQUAL                                     ~3      $2, ''
          5      > RETURN                                                   ~3
          6*       JMP                                                      ->9
    5     7  E > > CATCH                                       last         'Exception'
    6     8    > > RETURN                                                   0
    8     9*     > RETURN                                                   null

End of function is_serializable

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.9 ms | 1394 KiB | 15 Q