3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = NULL; $test2 = array(); $test3 = serialize($test2); echo $test3.PHP_EOL; echo empty(unserialize($test3)) ? 'Yes'.PHP_EOL : 'No'.PHP_EOL; var_dump (unserialize($test3));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qF4pv
function name:  (null)
number of ops:  24
compiled vars:  !0 = $test, !1 = $test2, !2 = $test3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'serialize'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
    6     6        CONCAT                                           ~7      !2, '%0A'
          7        ECHO                                                     ~7
   11     8        INIT_FCALL                                               'unserialize'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        BOOL_NOT                                         ~9      $8
         12      > JMPZ                                                     ~9, ->15
         13    >   QM_ASSIGN                                        ~10     'Yes%0A'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~10     'No%0A'
         16    >   ECHO                                                     ~10
   13    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'unserialize'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $11     
         21        SEND_VAR                                                 $11
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.15 ms | 1395 KiB | 19 Q