3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category design * @package base_default * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ ?> <div class="page-title"> <h1><?php echo $this->__('Checkout') ?></h1> </div> <script type="text/javascript" src="<?php echo $this->getJsUrl('varien/accordion.js') ?>"></script> <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/opcheckout.js') ?>"></script> <script type="text/javascript"> countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script> <ol class="opc" id="checkoutSteps"> <?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?> <?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?> <li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>"> <div class="step-title"> <span class="number"><?php echo $i ?></span> <h2><?php echo $_stepInfo['label'] ?></h2> <a href="#"><?php echo $this->__('Edit') ?></a> </div> <div id="checkout-step-<?php echo $_stepId ?>" class="step a-item" style="display:none;"> <?php echo $this->getChildHtml($_stepId) ?> </div> </li> <?php endforeach ?> </ol> <script type="text/javascript"> //<![CDATA[ var accordion = new Accordion('checkoutSteps', '.step-title', true); <?php if($this->getActiveStep()): ?> accordion.openSection('opc-<?php echo $this->getActiveStep() ?>'); <?php endif ?> var checkout = new Checkout(accordion,{ progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>', review: '<?php echo $this->getUrl('checkout/onepage/review') ?>', saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>', failure: '<?php echo $this->getUrl('checkout/cart') ?>'} ); //]]> </script>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 32, Position 2 = 89
Branch analysis from position: 32
2 jumps found. (Code = 78) Position 1 = 33, Position 2 = 89
Branch analysis from position: 33
2 jumps found. (Code = 47) Position 1 = 40, Position 2 = 48
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 50
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 59
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 66
Branch analysis from position: 64
1 jumps found. (Code = 42) Position 1 = 67
Branch analysis from position: 67
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 66
Branch analysis from position: 64
Branch analysis from position: 66
Branch analysis from position: 48
Branch analysis from position: 89
2 jumps found. (Code = 43) Position 1 = 95, Position 2 = 101
Branch analysis from position: 95
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 101
Branch analysis from position: 89
filename:       /in/oaCM5
function name:  (null)
number of ops:  127
compiled vars:  !0 = $i, !1 = $_stepInfo, !2 = $_stepId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   ECHO                                                     '%3Cdiv+class%3D%22page-title%22%3E%0A++++%3Ch1%3E'
   28     1        FETCH_THIS                                       $3      
          2        INIT_METHOD_CALL                                         $3, '__'
          3        SEND_VAL_EX                                              'Checkout'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6        ECHO                                                     '%3C%2Fh1%3E%0A%3C%2Fdiv%3E%0A%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22'
   30     7        FETCH_THIS                                       $5      
          8        INIT_METHOD_CALL                                         $5, 'getJsUrl'
          9        SEND_VAL_EX                                              'varien%2Faccordion.js'
         10        DO_FCALL                                      0  $6      
         11        ECHO                                                     $6
         12        ECHO                                                     '%22%3E%3C%2Fscript%3E%0A%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22'
   31    13        FETCH_THIS                                       $7      
         14        INIT_METHOD_CALL                                         $7, 'getSkinUrl'
         15        SEND_VAL_EX                                              'js%2Fopcheckout.js'
         16        DO_FCALL                                      0  $8      
         17        ECHO                                                     $8
         18        ECHO                                                     '%22%3E%3C%2Fscript%3E%0A%3Cscript+type%3D%22text%2Fjavascript%22%3E+countryRegions+%3D+'
   32    19        FETCH_THIS                                       $9      
         20        INIT_METHOD_CALL                                         $9, 'helper'
         21        SEND_VAL_EX                                              'directory'
         22        DO_FCALL                                      0  $10     
         23        INIT_METHOD_CALL                                         $10, 'getRegionJson'
         24        DO_FCALL                                      0  $11     
         25        ECHO                                                     $11
         26        ECHO                                                     '%3C%2Fscript%3E%0A%3Col+class%3D%22opc%22+id%3D%22checkoutSteps%22%3E%0A'
   34    27        ASSIGN                                                   !0, 0
         28        FETCH_THIS                                       $13     
         29        INIT_METHOD_CALL                                         $13, 'getSteps'
         30        DO_FCALL                                      0  $14     
         31      > FE_RESET_R                                       $15     $14, ->89
         32    > > FE_FETCH_R                                       ~16     $15, !1, ->89
         33    >   ASSIGN                                                   !2, ~16
   35    34        FETCH_THIS                                       $18     
         35        INIT_METHOD_CALL                                         $18, 'getChild'
         36        SEND_VAR_EX                                              !2
         37        DO_FCALL                                      0  $19     
         38        BOOL_NOT                                         ~20     $19
         39      > JMPNZ_EX                                         ~20     ~20, ->48
         40    >   FETCH_THIS                                       $21     
         41        INIT_METHOD_CALL                                         $21, 'getChild'
         42        SEND_VAR_EX                                              !2
         43        DO_FCALL                                      0  $22     
         44        INIT_METHOD_CALL                                         $22, 'isShow'
         45        DO_FCALL                                      0  $23     
         46        BOOL_NOT                                         ~24     $23
         47        BOOL                                             ~20     ~24
         48    > > JMPZ                                                     ~20, ->50
         49    > > JMP                                                      ->32
         50    >   PRE_INC                                                  !0
   36    51        ECHO                                                     '++++%3Cli+id%3D%22opc-'
         52        ECHO                                                     !2
         53        ECHO                                                     '%22+class%3D%22section'
         54        ISSET_ISEMPTY_DIM_OBJ                         1  ~26     !1, 'allow'
         55        BOOL_NOT                                         ~27     ~26
         56      > JMPZ                                                     ~27, ->59
         57    >   QM_ASSIGN                                        ~28     '+allow'
         58      > JMP                                                      ->60
         59    >   QM_ASSIGN                                        ~28     ''
         60    >   ECHO                                                     ~28
         61        ISSET_ISEMPTY_DIM_OBJ                         1  ~29     !1, 'complete'
         62        BOOL_NOT                                         ~30     ~29
         63      > JMPZ                                                     ~30, ->66
         64    >   QM_ASSIGN                                        ~31     '+saved'
         65      > JMP                                                      ->67
         66    >   QM_ASSIGN                                        ~31     ''
         67    >   ECHO                                                     ~31
         68        ECHO                                                     '%22%3E%0A++++++++%3Cdiv+class%3D%22step-title%22%3E%0A++++++++++++%3Cspan+class%3D%22number%22%3E'
   38    69        ECHO                                                     !0
         70        ECHO                                                     '%3C%2Fspan%3E%0A++++++++++++%3Ch2%3E'
   39    71        FETCH_DIM_R                                      ~32     !1, 'label'
         72        ECHO                                                     ~32
         73        ECHO                                                     '%3C%2Fh2%3E%0A++++++++++++%3Ca+href%3D%22%23%22%3E'
   40    74        FETCH_THIS                                       $33     
         75        INIT_METHOD_CALL                                         $33, '__'
         76        SEND_VAL_EX                                              'Edit'
         77        DO_FCALL                                      0  $34     
         78        ECHO                                                     $34
         79        ECHO                                                     '%3C%2Fa%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv+id%3D%22checkout-step-'
   42    80        ECHO                                                     !2
         81        ECHO                                                     '%22+class%3D%22step+a-item%22+style%3D%22display%3Anone%3B%22%3E%0A++++++++++++'
   43    82        FETCH_THIS                                       $35     
         83        INIT_METHOD_CALL                                         $35, 'getChildHtml'
         84        SEND_VAR_EX                                              !2
         85        DO_FCALL                                      0  $36     
         86        ECHO                                                     $36
   44    87        ECHO                                                     '++++++++%3C%2Fdiv%3E%0A++++%3C%2Fli%3E%0A'
   34    88      > JMP                                                      ->32
         89    >   FE_FREE                                                  $15
   47    90        ECHO                                                     '%3C%2Fol%3E%0A%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A%2F%2F%3C%21%5BCDATA%5B%0A++++var+accordion+%3D+new+Accordion%28%27checkoutSteps%27%2C+%27.step-title%27%2C+true%29%3B%0A++++'
   51    91        FETCH_THIS                                       $37     
         92        INIT_METHOD_CALL                                         $37, 'getActiveStep'
         93        DO_FCALL                                      0  $38     
         94      > JMPZ                                                     $38, ->101
   52    95    >   ECHO                                                     '++++accordion.openSection%28%27opc-'
         96        FETCH_THIS                                       $39     
         97        INIT_METHOD_CALL                                         $39, 'getActiveStep'
         98        DO_FCALL                                      0  $40     
         99        ECHO                                                     $40
        100        ECHO                                                     '%27%29%3B%0A++++'
   54   101    >   ECHO                                                     '++++var+checkout+%3D+new+Checkout%28accordion%2C%7B%0A++++++++progress%3A+%27'
   55   102        FETCH_THIS                                       $41     
        103        INIT_METHOD_CALL                                         $41, 'getUrl'
        104        SEND_VAL_EX                                              'checkout%2Fonepage%2Fprogress'
        105        DO_FCALL                                      0  $42     
        106        ECHO                                                     $42
        107        ECHO                                                     '%27%2C%0A++++++++review%3A+%27'
   56   108        FETCH_THIS                                       $43     
        109        INIT_METHOD_CALL                                         $43, 'getUrl'
        110        SEND_VAL_EX                                              'checkout%2Fonepage%2Freview'
        111        DO_FCALL                                      0  $44     
        112        ECHO                                                     $44
        113        ECHO                                                     '%27%2C%0A++++++++saveMethod%3A+%27'
   57   114        FETCH_THIS                                       $45     
        115        INIT_METHOD_CALL                                         $45, 'getUrl'
        116        SEND_VAL_EX                                              'checkout%2Fonepage%2FsaveMethod'
        117        DO_FCALL                                      0  $46     
        118        ECHO                                                     $46
        119        ECHO                                                     '%27%2C%0A++++++++failure%3A+%27'
   58   120        FETCH_THIS                                       $47     
        121        INIT_METHOD_CALL                                         $47, 'getUrl'
        122        SEND_VAL_EX                                              'checkout%2Fcart'
        123        DO_FCALL                                      0  $48     
        124        ECHO                                                     $48
        125        ECHO                                                     '%27%7D%0A++++%29%3B%0A%2F%2F%5D%5D%3E%0A%3C%2Fscript%3E'
   61   126      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.59 ms | 1407 KiB | 13 Q