3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <style> body{ background-color: #95a5a6; } </style> <title> Random Cats </title> <meta charset="utf-8" /> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"> </script> <style> body{ background-color: #95a5a6; }.img-thumbnail{ -moz-box-shadow: 3px 3px 5px 6px grey; -webkit-box-shadow: 3px 3px 5px 6px grey; box-shadow: 3px 3px 5px 6px grey; } </style> </head> <body> <center> <h1> Random Cats *.* </h1> <?php $url = "http://thecatapi.com/api/images/get?format=xml&results_per_page=1"; $xml = simplexml_load_file($url); $xmlImg = $xml->data->images->image->url; $xmlImgSource = $xml->data->images->image->source_url; $source = $xmlImgsource; echo " <img src='$xmlImg' width='600px' class='img-thumbnail'> " ?> <br> <br> <div> <a href=" <?php echo $xmlImgSource ?> "> <button class="button"> Source </button> </a> <a href="/"> <button type="submit" class="button"> New Picture </button> </a> </div> <br> <p> Original made by Nihad Dizdarevic <br> TheCatAPI & XML </p> <a href="https://github.com/dizzyniho/TheCatsSite"> Fork this on GitHub </a> </center> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K10dE
function name:  (null)
number of ops:  25
compiled vars:  !0 = $url, !1 = $xml, !2 = $xmlImg, !3 = $xmlImgSource, !4 = $source, !5 = $xmlImgsource
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++%3Chead%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Cstyle%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++body%7B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++background-color%3A+%2395a5a6%3B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++%7D%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%2Fstyle%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Ctitle%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++Random+Cats%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%2Ftitle%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Cmeta+charset%3D%22utf-8%22+%2F%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%21--+Latest+compiled+and+minified+CSS+--%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Clink+rel%3D%22stylesheet%22+href%3D%22%2F%2Fmaxcdn.bootstrapcdn.com%2Fbootstrap%2F3.2.0%2Fcss%2Fbootstrap.min.css%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%21--+Optional+theme+--%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Clink+rel%3D%22stylesheet%22+href%3D%22%2F%2Fmaxcdn.bootstrapcdn.com%2Fbootstrap%2F3.2.0%2Fcss%2Fbootstrap-theme.min.css%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%21--+Latest+compiled+and+minified+JavaScript+--%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Cscript+src%3D%22%2F%2Fmaxcdn.bootstrapcdn.com%2Fbootstrap%2F3.2.0%2Fjs%2Fbootstrap.min.js%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%2Fscript%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Cstyle%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++body%7B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++background-color%3A+%2395a5a6%3B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++%7D.img-thumbnail%7B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++-moz-box-shadow%3A++++3px+3px+5px+6px+grey%3B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++-webkit-box-shadow%3A+3px+3px+5px+6px+grey%3B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++box-shadow%3A+++++++++3px+3px+5px+6px+grey%3B%0A++++++%0A++++++%0A++++++++%0A++++++++++++++%7D%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%2Fstyle%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%0A++++++%0A++++++%0A++++++++%0A++++++++++%3C%2Fhead%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++%3Cbody%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Ccenter%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++%3Ch1%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++Random+Cats+%2A.%2A%0A++++++%0A++++++%0A++++++++%0A++++++++++++++%3C%2Fh1%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++%0A++++++%0A++++++%0A++++++++%0A++++++++++++++'
  165     1        ASSIGN                                                   !0, 'http%3A%2F%2Fthecatapi.com%2Fapi%2Fimages%2Fget%3Fformat%3Dxml%26results_per_page%3D1'
  169     2        INIT_FCALL                                               'simplexml_load_file'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
  173     6        FETCH_OBJ_R                                      ~9      !1, 'data'
          7        FETCH_OBJ_R                                      ~10     ~9, 'images'
          8        FETCH_OBJ_R                                      ~11     ~10, 'image'
          9        FETCH_OBJ_R                                      ~12     ~11, 'url'
         10        ASSIGN                                                   !2, ~12
  177    11        FETCH_OBJ_R                                      ~14     !1, 'data'
         12        FETCH_OBJ_R                                      ~15     ~14, 'images'
         13        FETCH_OBJ_R                                      ~16     ~15, 'image'
         14        FETCH_OBJ_R                                      ~17     ~16, 'source_url'
         15        ASSIGN                                                   !3, ~17
  181    16        ASSIGN                                                   !4, !5
  185    17        ROPE_INIT                                     3  ~21     '%0A++++++%0A++++++%0A++++++++%0A++++++++%3Cimg+src%3D%27'
  189    18        ROPE_ADD                                      1  ~21     ~21, !2
         19        ROPE_END                                      2  ~20     ~21, '%27+width%3D%27600px%27+class%3D%27img-thumbnail%27%3E%0A++++++%0A++++++%0A++++++++%0A++++++++'
         20        ECHO                                                     ~20
  198    21        ECHO                                                     '++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3Cbr%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3Cbr%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3Cdiv%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++++%3Ca+href%3D%22%0A++++++%0A++++++%0A++++++++%0A++++++++'
  217    22        ECHO                                                     !3
  218    23        ECHO                                                     '++++++%0A++++++%0A++++++++%0A++++++++%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++%3Cbutton+class%3D%22button%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++Source%0A++++++%0A++++++%0A++++++++%0A++++++++++%3C%2Fbutton%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++%3C%2Fa%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++%3Ca+href%3D%22%2F%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3Cbutton+type%3D%22submit%22+class%3D%22button%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++New+Picture%0A++++++%0A++++++%0A++++++++%0A++++++++++++%3C%2Fbutton%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++%3C%2Fa%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3C%2Fdiv%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3Cbr%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3Cp%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++++Original+made+by+Nihad+Dizdarevic%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++++%3Cbr%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++++TheCatAPI+%26+XML%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3C%2Fp%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3Ca+href%3D%22https%3A%2F%2Fgithub.com%2Fdizzyniho%2FTheCatsSite%22%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++++Fork+this+on+GitHub%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++++++++++%3C%2Fa%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++++++++++%3C%2Fcenter%3E%0A++++++%0A++++++%0A++++++++%0A++++++++++%3C%2Fbody%3E%0A++++++%0A++++++%0A++++++++%0A++++++++%3C%2Fhtml%3E'
  309    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.65 ms | 1405 KiB | 15 Q