3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://williamsoriscompetition.com/enter.php?id=c54eaaa334be71e3da26536ffb365337185985da&score=1%2E926627&code=960349492860 $id = 'c54eaaa334be71e3da26536ffb365337185985da'; $score = urldecode('1%2E926627'); $num1 = toInt32(substr($id, 0, 1)) * toInt32(substr($id, -1, 1)); $num2 = toInt32(substr($score, 0, 1)) * toInt32(substr($id, 3, 1)); $num3 = toInt32(substr($id, 2, 1)) * toInt32(substr($score, -1, 1)); var_dump($num1, $num2, $num3); $code = $num1 . $num2 . $num3; var_dump($code); function toInt32($value) { $intval = hexdec($value); return (PHP_INT_SIZE === 8) ? ($intval - 0x100000000) : $intval; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m2tbs
function name:  (null)
number of ops:  71
compiled vars:  !0 = $id, !1 = $score, !2 = $num1, !3 = $num2, !4 = $num3, !5 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'c54eaaa334be71e3da26536ffb365337185985da'
    7     1        INIT_FCALL                                               'urldecode'
          2        SEND_VAL                                                 '1%252E926627'
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    9     5        INIT_FCALL_BY_NAME                                       'toInt32'
          6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $9      
         11        SEND_VAR_NO_REF_EX                                       $9
         12        DO_FCALL                                      0  $10     
         13        INIT_FCALL_BY_NAME                                       'toInt32'
         14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 -1
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $11     
         19        SEND_VAR_NO_REF_EX                                       $11
         20        DO_FCALL                                      0  $12     
         21        MUL                                              ~13     $10, $12
         22        ASSIGN                                                   !2, ~13
   10    23        INIT_FCALL_BY_NAME                                       'toInt32'
         24        INIT_FCALL                                               'substr'
         25        SEND_VAR                                                 !1
         26        SEND_VAL                                                 0
         27        SEND_VAL                                                 1
         28        DO_ICALL                                         $15     
         29        SEND_VAR_NO_REF_EX                                       $15
         30        DO_FCALL                                      0  $16     
         31        INIT_FCALL_BY_NAME                                       'toInt32'
         32        INIT_FCALL                                               'substr'
         33        SEND_VAR                                                 !0
         34        SEND_VAL                                                 3
         35        SEND_VAL                                                 1
         36        DO_ICALL                                         $17     
         37        SEND_VAR_NO_REF_EX                                       $17
         38        DO_FCALL                                      0  $18     
         39        MUL                                              ~19     $16, $18
         40        ASSIGN                                                   !3, ~19
   11    41        INIT_FCALL_BY_NAME                                       'toInt32'
         42        INIT_FCALL                                               'substr'
         43        SEND_VAR                                                 !0
         44        SEND_VAL                                                 2
         45        SEND_VAL                                                 1
         46        DO_ICALL                                         $21     
         47        SEND_VAR_NO_REF_EX                                       $21
         48        DO_FCALL                                      0  $22     
         49        INIT_FCALL_BY_NAME                                       'toInt32'
         50        INIT_FCALL                                               'substr'
         51        SEND_VAR                                                 !1
         52        SEND_VAL                                                 -1
         53        SEND_VAL                                                 1
         54        DO_ICALL                                         $23     
         55        SEND_VAR_NO_REF_EX                                       $23
         56        DO_FCALL                                      0  $24     
         57        MUL                                              ~25     $22, $24
         58        ASSIGN                                                   !4, ~25
   13    59        INIT_FCALL                                               'var_dump'
         60        SEND_VAR                                                 !2
         61        SEND_VAR                                                 !3
         62        SEND_VAR                                                 !4
         63        DO_ICALL                                                 
   15    64        CONCAT                                           ~28     !2, !3
         65        CONCAT                                           ~29     ~28, !4
         66        ASSIGN                                                   !5, ~29
   17    67        INIT_FCALL                                               'var_dump'
         68        SEND_VAR                                                 !5
         69        DO_ICALL                                                 
   24    70      > RETURN                                                   1

Function toint32:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m2tbs
function name:  toInt32
number of ops:  12
compiled vars:  !0 = $value, !1 = $intval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   22     1        INIT_FCALL                                               'hexdec'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
   23     5      > JMPZ                                                     <true>, ->9
          6    >   SUB                                              ~4      !1, 4294967296
          7        QM_ASSIGN                                        ~5      ~4
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~5      !1
         10    > > RETURN                                                   ~5
   24    11*     > RETURN                                                   null

End of function toint32

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.48 ms | 1400 KiB | 21 Q