3v4l.org

run code in 300+ PHP versions simultaneously
<?php $someJson = '{"":""}'; $myObject = json_decode($someJSON); $newJson = json_encode($myObject); var_dump($someJson, $newJson, $someJson === $newJson); $myObject = (object)[""=>""]; $serialized = serialize($myObject); var_dump($myObject, $serialized); $unserialized = unserialize($myObject); var_dump($unserialized);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3037d
function name:  (null)
number of ops:  33
compiled vars:  !0 = $someJson, !1 = $myObject, !2 = $someJSON, !3 = $newJson, !4 = $serialized, !5 = $unserialized
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22%22%3A%22%22%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !2
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    5     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !3, $9
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !3
         12        IS_IDENTICAL                                     ~11     !0, !3
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                                 
    9    15        CAST                                          8  ~13     <array>
         16        ASSIGN                                                   !1, ~13
   10    17        INIT_FCALL                                               'serialize'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $15     
         20        ASSIGN                                                   !4, $15
   11    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                                 
   12    25        INIT_FCALL                                               'unserialize'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                         $18     
         28        ASSIGN                                                   !5, $18
   13    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !5
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.03 ms | 1396 KiB | 23 Q