3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $_a = 10; public $b = 20; } $a = new Test; var_dump($a); $serialize = serialize($a); var_dump($serialize); $json = json_encode($serialize); var_dump($json); $jsonDecode = json_decode($json); $unserialize = unserialize($jsonDecode); var_dump($unserialize);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kfJPD
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $serialize, !2 = $json, !3 = $jsonDecode, !4 = $unserialize
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $5      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    9     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'serialize'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !1, $9
   11    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   12    13        INIT_FCALL                                               'json_encode'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !2, $12
   13    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
   14    20        INIT_FCALL                                               'json_decode'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !3, $15
   15    24        INIT_FCALL                                               'unserialize'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !4, $17
   16    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.73 ms | 1396 KiB | 23 Q