3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = array("art", "emotion"); $serialized = serialize($tags); $deserialized = unserialize($serialized); echo $serialized. "\n"; echo $deserialized[0]. "\n"; $json = '{ "success": { "total": 1 }, "contents": { "quotes": [ { "quote": "The artist is a receptacle for the emotions that come from all over the place: from the sky, from the earth, from a scrap of paper, from a passing shape, from a spiders web.", "length": "174", "author": "Pablo Picasso", "tags": [ "art", "artist", "emotion" ], "category": "art", "date": "2017-04-12", "permalink": "https://theysaidso.com/quote/MO7LGV07dZujWjUR2_WCXQeF/pablo-picasso-the-artist-is-a-receptacle-for-the-emotions-that-come-from-all-ove", "title": "Art quote of the day ", "background": "https://theysaidso.com/img/qod/fractal_arabesque_loops.jpg", "id": "MO7LGV07dZujWjUR2_WCXQeF" } ], "copyright": "2017-19 theysaidso.com" } }'; //echo $json."\n"; $jsonObject = json_decode($json); echo var_dump($jsonObject->{"success"}); echo "-----------------------------------";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tVmq
function name:  (null)
number of ops:  26
compiled vars:  !0 = $tags, !1 = $serialized, !2 = $deserialized, !3 = $json, !4 = $jsonObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'serialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
    5     5        INIT_FCALL                                               'unserialize'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
    6     9        CONCAT                                           ~10     !1, '%0A'
         10        ECHO                                                     ~10
    7    11        FETCH_DIM_R                                      ~11     !2, 0
         12        CONCAT                                           ~12     ~11, '%0A'
         13        ECHO                                                     ~12
    9    14        ASSIGN                                                   !3, '%7B%0A++++%22success%22%3A+%7B%0A++++++++%22total%22%3A+1%0A++++%7D%2C%0A++++%22contents%22%3A+%7B%0A++++++++%22quotes%22%3A+%5B%0A++++++++++++%7B%0A++++++++++++++++%22quote%22%3A+%22The+artist+is+a+receptacle+for+the+emotions+that+come+from+all+over+the+place%3A+from+the+sky%2C+from+the+earth%2C+from+a+scrap+of+paper%2C+from+a+passing+shape%2C+from+a+spiders+web.%22%2C%0A++++++++++++++++%22length%22%3A+%22174%22%2C%0A++++++++++++++++%22author%22%3A+%22Pablo+Picasso%22%2C%0A++++++++++++++++%22tags%22%3A+%5B%0A++++++++++++++++++++%22art%22%2C%0A++++++++++++++++++++%22artist%22%2C%0A++++++++++++++++++++%22emotion%22%0A++++++++++++++++%5D%2C%0A++++++++++++++++%22category%22%3A+%22art%22%2C%0A++++++++++++++++%22date%22%3A+%222017-04-12%22%2C%0A++++++++++++++++%22permalink%22%3A+%22https%3A%2F%2Ftheysaidso.com%2Fquote%2FMO7LGV07dZujWjUR2_WCXQeF%2Fpablo-picasso-the-artist-is-a-receptacle-for-the-emotions-that-come-from-all-ove%22%2C%0A++++++++++++++++%22title%22%3A+%22Art+quote+of+the+day+%22%2C%0A++++++++++++++++%22background%22%3A+%22https%3A%2F%2Ftheysaidso.com%2Fimg%2Fqod%2Ffractal_arabesque_loops.jpg%22%2C%0A++++++++++++++++%22id%22%3A+%22MO7LGV07dZujWjUR2_WCXQeF%22%0A++++++++++++%7D%0A++++++++%5D%2C%0A++++++++%22copyright%22%3A+%222017-19+theysaidso.com%22%0A++++%7D%0A%7D'
   38    15        INIT_FCALL                                               'json_decode'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $14     
         18        ASSIGN                                                   !4, $14
   39    19        INIT_FCALL                                               'var_dump'
         20        FETCH_OBJ_R                                      ~16     !4, 'success'
         21        SEND_VAL                                                 ~16
         22        DO_ICALL                                         $17     
         23        ECHO                                                     $17
   41    24        ECHO                                                     '-----------------------------------'
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.02 ms | 1401 KiB | 21 Q