3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Only in production mode. error_reporting(0); define('DS', DIRECTORY_SEPARATOR); define('ROOT', dirname(__FILE__) . DS); // ROOT is php_js/ folder ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>CookieLayerHelper PHP, HTML, JS, CSS</title> </head> <body> <h1>CookieLayerHelper PHP, HTML, JS, CSS</h1> <script type="text/javascript" src="./js/jquery-1.11.1.min.js"></script> <?php require_once ROOT . DS . 'Helper' . DS .'CookieLayerHelper.php'; $settings = array( 'locale' => 'pt_PT', 'mode' => 'normal', // normal: shows understood button and include all cookies without ask. 'onAceptClick' => ' /* Instead of load the source code via CookieLayerLoader.js, here you can include more source code. */ alert(\'Agree. Code injected from settings =)\'); ', 'onDisagreeClick' => ' /* Here you can include code that is going to execute when disagree button was pressed */ alert(\'Disagree. Code injected from settings =)\'); ' ); try{ $CookieLayerHelper = new CookieLayerHelper($settings); $CookieLayerHelper->render(); } catch (Exception $e){ echo $e->getMessage(); } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 33
Branch analysis from position: 33
2 jumps found. (Code = 107) Position 1 = 34, Position 2 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RWXVq
function name:  (null)
number of ops:  39
compiled vars:  !0 = $settings, !1 = $CookieLayerHelper, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    6     3        INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'DS'
          5        SEND_VAL                                                 '%2F'
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'define'
          8        SEND_VAL                                                 'ROOT'
          9        INIT_FCALL                                               'dirname'
         10        SEND_VAL                                                 '%2Fin%2FRWXVq'
         11        DO_ICALL                                         $5      
         12        FETCH_CONSTANT                                   ~6      'DS'
         13        CONCAT                                           ~7      $5, ~6
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
   10    16        ECHO                                                     '%0A%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Cmeta+charset%3D%22UTF-8%22%3E%0A++++++++%3Ctitle%3ECookieLayerHelper+PHP%2C+HTML%2C+JS%2C+CSS%3C%2Ftitle%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++%3Ch1%3ECookieLayerHelper+PHP%2C+HTML%2C+JS%2C+CSS%3C%2Fh1%3E%0A++++++++%0A++++++++%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22.%2Fjs%2Fjquery-1.11.1.min.js%22%3E%3C%2Fscript%3E%0A++++++++'
   23    17        FETCH_CONSTANT                                   ~9      'ROOT'
         18        FETCH_CONSTANT                                   ~10     'DS'
         19        CONCAT                                           ~11     ~9, ~10
         20        CONCAT                                           ~12     ~11, 'Helper'
         21        FETCH_CONSTANT                                   ~13     'DS'
         22        CONCAT                                           ~14     ~12, ~13
         23        CONCAT                                           ~15     ~14, 'CookieLayerHelper.php'
         24        INCLUDE_OR_EVAL                                          ~15, REQUIRE_ONCE
   25    25        ASSIGN                                                   !0, <array>
   44    26        NEW                                              $18     'CookieLayerHelper'
         27        SEND_VAR_EX                                              !0
         28        DO_FCALL                                      0          
         29        ASSIGN                                                   !1, $18
   45    30        INIT_METHOD_CALL                                         !1, 'render'
         31        DO_FCALL                                      0          
         32      > JMP                                                      ->37
   47    33  E > > CATCH                                       last         'Exception'
   48    34    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         35        DO_FCALL                                      0  $22     
         36        ECHO                                                     $22
   52    37    >   ECHO                                                     '++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   53    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.23 ms | 1400 KiB | 19 Q