3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' { "status": "ok", "totalResults": 394877, "articles": [{ "source": { "id": "engadget", "name": "Engadget" }, "author": "https://www.engadget.com/about/editors/kris-holt", "title": "Uber, PayPal and Walgreens set up a Vaccine Access Fund", "description": "Anyone can donate and help to cover the cost of rides to COVID-19 vaccination sites.", "url": "https://www.engadget.com/uber-paypal-walgreens-vaccine-access-fund-donations-150056875.html", "urlToImage": "https://s.yimg.com/os/creatr-uploaded-images/2021-04/6031a890-9b9d-11eb-93bf-f9d0aa515883", "publishedAt": "2021-04-12T15:00:56Z", "content": "Uber\r\n has teamed up with PayPal\r\n and Walgreens\r\n to create a Vaccine Access Fund\r\n with the aim of covering the cost of trips to COVID-19 vaccination sites, especially for people in underserved com… [+1471 chars]" }, { "source": { "id": "engadget", "name": "Engadget" }, "author": "https://www.engadget.com/about/editors/jon-fingas", "title": "Alexa can help you find a COVID-19 vaccination site", "description": "Amazon Alexa now helps you find nearby COVID-19 vaccination sites, and call them if you have vaccine questions.", "url": "https://www.engadget.com/amazon-alexa-covid-19-vaccination-site-151440856.html", "urlToImage": "https://s.yimg.com/os/creatr-uploaded-images/2021-04/73830b10-a1e6-11eb-bdf2-57fabbd8c037", "publishedAt": "2021-04-20T15:14:40Z", "content": "Now that every adult in the US is eligible for a COVID-19 vaccine, Amazon wants to make it as simple as possible to get your shots. Alexa now helps you find vaccination sites just by saying \"where ca…[+938 chars]" }] } '; $decoded = json_decode($json, true); // var_export($decoded['articles']); foreach ($decoded['articles'] as $article) { echo $article['title'] . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/fcpsf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $json, !1 = $decoded, !2 = $article
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A+%7B%0A+%09%22status%22%3A+%22ok%22%2C%0A+%09%22totalResults%22%3A+394877%2C%0A+%09%22articles%22%3A+%5B%7B%0A+%09%09%22source%22%3A+%7B%0A+%09%09%09%22id%22%3A+%22engadget%22%2C%0A+%09%09%09%22name%22%3A+%22Engadget%22%0A+%09%09%7D%2C%0A+%09%09%22author%22%3A+%22https%3A%2F%2Fwww.engadget.com%2Fabout%2Feditors%2Fkris-holt%22%2C%0A+%09%09%22title%22%3A+%22Uber%2C+PayPal+and+Walgreens+set+up+a+Vaccine+Access+Fund%22%2C%0A+%09%09%22description%22%3A+%22Anyone+can+donate+and+help+to+cover+the+cost+of+rides+to+COVID-19+vaccination+sites.%22%2C%0A+%09%09%22url%22%3A+%22https%3A%2F%2Fwww.engadget.com%2Fuber-paypal-walgreens-vaccine-access-fund-donations-150056875.html%22%2C%0A+%09%09%22urlToImage%22%3A+%22https%3A%2F%2Fs.yimg.com%2Fos%2Fcreatr-uploaded-images%2F2021-04%2F6031a890-9b9d-11eb-93bf-f9d0aa515883%22%2C%0A+%09%09%22publishedAt%22%3A+%222021-04-12T15%3A00%3A56Z%22%2C%0A+%09%09%22content%22%3A+%22Uber%5Cr%5Cn+has+teamed+up+with+PayPal%5Cr%5Cn+and+Walgreens%5Cr%5Cn+to+create+a+Vaccine+Access+Fund%5Cr%5Cn+with+the+aim+of+covering+the+cost+of+trips+to+COVID-19+vaccination+sites%2C+especially+for+people+in+underserved+com%E2%80%A6+%5B%2B1471+chars%5D%22%0A+%09%7D%2C+%7B%0A+%09%09%22source%22%3A+%7B%0A+%09%09%09%22id%22%3A+%22engadget%22%2C%0A+%09%09%09%22name%22%3A+%22Engadget%22%0A+%09%09%7D%2C%0A+%09%09%22author%22%3A+%22https%3A%2F%2Fwww.engadget.com%2Fabout%2Feditors%2Fjon-fingas%22%2C%0A+%09%09%22title%22%3A+%22Alexa+can+help+you+find+a+COVID-19+vaccination+site%22%2C%0A+%09%09%22description%22%3A+%22Amazon+Alexa+now+helps+you+find+nearby+COVID-19+vaccination+sites%2C+and+call+them+if+you+have+vaccine+questions.%22%2C%0A+%09%09%22url%22%3A+%22https%3A%2F%2Fwww.engadget.com%2Famazon-alexa-covid-19-vaccination-site-151440856.html%22%2C%0A+%09%09%22urlToImage%22%3A+%22https%3A%2F%2Fs.yimg.com%2Fos%2Fcreatr-uploaded-images%2F2021-04%2F73830b10-a1e6-11eb-bdf2-57fabbd8c037%22%2C%0A+%09%09%22publishedAt%22%3A+%222021-04-20T15%3A14%3A40Z%22%2C%0A+%09%09%22content%22%3A+%22Now+that+every+adult+in+the+US+is+eligible+for+a+COVID-19+vaccine%2C+Amazon+wants+to+make+it+as+simple+as+possible+to+get+your+shots.+Alexa+now+helps+you+find+vaccination+sites+just+by+saying+%5C%22where+ca%E2%80%A6%5B%2B938+chars%5D%22%0A+%09%7D%5D%0A+%7D%0A'
   35     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   39     6        FETCH_DIM_R                                      ~6      !1, 'articles'
          7      > FE_RESET_R                                       $7      ~6, ->13
          8    > > FE_FETCH_R                                               $7, !2, ->13
   40     9    >   FETCH_DIM_R                                      ~8      !2, 'title'
         10        CONCAT                                           ~9      ~8, '%0A'
         11        ECHO                                                     ~9
   39    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $7
   41    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.06 ms | 1002 KiB | 14 Q