3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(" protected $pkgVersion = '1.1';"); $exploded = explode('=', array_shift($matches)); $result = trim(array_pop($exploded), '\t ;\'"'); $val1 = explode('.', $result); $val2 = explode('.', $this->input[0]); $val2 = array_pad($val2, count($val1), '0'); $val1 = array_pad($val1, count($val2), '0'); if (implode('.', $val2) != implode('.', $val1)) { $success = false; } $result = $result; var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 59
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 59
filename:       /in/oYCMR
function name:  (null)
number of ops:  64
compiled vars:  !0 = $matches, !1 = $pkgVersion, !2 = $exploded, !3 = $result, !4 = $val1, !5 = $val2, !6 = $success
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ROPE_INIT                                     3  ~8      '%09protected+'
          1        ROPE_ADD                                      1  ~8      ~8, !1
          2        ROPE_END                                      2  ~7      ~8, '+%09%09%09%3D+%09%271.1%27%3B'
          3        INIT_ARRAY                                       ~10     ~7
          4        ASSIGN                                                   !0, ~10
    4     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%3D'
          7        INIT_FCALL                                               'array_shift'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                         $12     
         10        SEND_VAR                                                 $12
         11        DO_ICALL                                         $13     
         12        ASSIGN                                                   !2, $13
    5    13        INIT_FCALL                                               'trim'
         14        INIT_FCALL                                               'array_pop'
         15        SEND_REF                                                 !2
         16        DO_ICALL                                         $15     
         17        SEND_VAR                                                 $15
         18        SEND_VAL                                                 '%5Ct+%3B%27%22'
         19        DO_ICALL                                         $16     
         20        ASSIGN                                                   !3, $16
    7    21        INIT_FCALL                                               'explode'
         22        SEND_VAL                                                 '.'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $18     
         25        ASSIGN                                                   !4, $18
    8    26        INIT_FCALL                                               'explode'
         27        SEND_VAL                                                 '.'
         28        FETCH_THIS                                       $20     
         29        FETCH_OBJ_R                                      ~21     $20, 'input'
         30        FETCH_DIM_R                                      ~22     ~21, 0
         31        SEND_VAL                                                 ~22
         32        DO_ICALL                                         $23     
         33        ASSIGN                                                   !5, $23
    9    34        INIT_FCALL                                               'array_pad'
         35        SEND_VAR                                                 !5
         36        COUNT                                            ~25     !4
         37        SEND_VAL                                                 ~25
         38        SEND_VAL                                                 '0'
         39        DO_ICALL                                         $26     
         40        ASSIGN                                                   !5, $26
   10    41        INIT_FCALL                                               'array_pad'
         42        SEND_VAR                                                 !4
         43        COUNT                                            ~28     !5
         44        SEND_VAL                                                 ~28
         45        SEND_VAL                                                 '0'
         46        DO_ICALL                                         $29     
         47        ASSIGN                                                   !4, $29
   12    48        INIT_FCALL                                               'implode'
         49        SEND_VAL                                                 '.'
         50        SEND_VAR                                                 !5
         51        DO_ICALL                                         $31     
         52        INIT_FCALL                                               'implode'
         53        SEND_VAL                                                 '.'
         54        SEND_VAR                                                 !4
         55        DO_ICALL                                         $32     
         56        IS_NOT_EQUAL                                             $31, $32
         57      > JMPZ                                                     ~33, ->59
   13    58    >   ASSIGN                                                   !6, <false>
   15    59    >   ASSIGN                                                   !3, !3
   17    60        INIT_FCALL                                               'var_dump'
         61        SEND_VAR                                                 !3
         62        DO_ICALL                                                 
         63      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 1400 KiB | 27 Q