3v4l.org

run code in 300+ PHP versions simultaneously
<?php $badge = '<img src="www.pampy.de" />'; if(is_string($badge)) { // Try to parse the html code to get the url preg_match('/src="([^\s"]+)/', $badge, $matches); if(is_array($matches) && count($matches) > 0) { $this->topBadge = $matches[0]; $this->additionalDeliveryInfo = I18n::t('Guaranteed delivery before christmas'); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 13
Branch analysis from position: 24
filename:       /in/1ZiPZ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $badge, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cimg+src%3D%22www.pampy.de%22+%2F%3E'
    3     1        TYPE_CHECK                                   64          !0
          2      > JMPZ                                                     ~3, ->24
    5     3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2Fsrc%3D%22%28%5B%5E%5Cs%22%5D%2B%29%2F'
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    6     8        TYPE_CHECK                                  128  ~5      !1
          9      > JMPZ_EX                                          ~5      ~5, ->13
         10    >   COUNT                                            ~6      !1
         11        IS_SMALLER                                       ~7      0, ~6
         12        BOOL                                             ~5      ~7
         13    > > JMPZ                                                     ~5, ->24
    7    14    >   FETCH_THIS                                       $8      
         15        FETCH_DIM_R                                      ~10     !1, 0
         16        ASSIGN_OBJ                                               $8, 'topBadge'
         17        OP_DATA                                                  ~10
    8    18        FETCH_THIS                                       $11     
         19        INIT_STATIC_METHOD_CALL                                  'I18n', 't'
         20        SEND_VAL_EX                                              'Guaranteed+delivery+before+christmas'
         21        DO_FCALL                                      0  $13     
         22        ASSIGN_OBJ                                               $11, 'additionalDeliveryInfo'
         23        OP_DATA                                                  $13
   10    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.27 ms | 1395 KiB | 15 Q