3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; // handle = 1 $a->test = false; echo('Property $a->test is: '); var_dump($a->test); $b = unserialize('a:1:{i:0;C:3:"GMP":69:{s:1:"1";a:2:{s:4:"test";b:1;i:0;O:12:"DateInterval":1:{s:1:"y";R:2;}}}}'); echo('Property $a->test changed to: '); var_dump($a->test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tC4QD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN_OBJ                                               !0, 'test'
          4        OP_DATA                                                  <false>
    4     5        ECHO                                                     'Property+%24a-%3Etest+is%3A+'
    5     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~6      !0, 'test'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'unserialize'
         11        SEND_VAL                                                 'a%3A1%3A%7Bi%3A0%3BC%3A3%3A%22GMP%22%3A69%3A%7Bs%3A1%3A%221%22%3Ba%3A2%3A%7Bs%3A4%3A%22test%22%3Bb%3A1%3Bi%3A0%3BO%3A12%3A%22DateInterval%22%3A1%3A%7Bs%3A1%3A%22y%22%3BR%3A2%3B%7D%7D%7D%7D'
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    7    14        ECHO                                                     'Property+%24a-%3Etest+changed+to%3A+'
    8    15        INIT_FCALL                                               'var_dump'
         16        FETCH_OBJ_R                                      ~10     !0, 'test'
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.66 ms | 954 KiB | 15 Q