3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['a'] = 6898557993159892; $a=$_POST['a']*1337+1.7; if(preg_match('/\D/', (string) $a)){ $a = 1337; } else{ $a = (int) round($a) - 33; } echo $a; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XsQni
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_W                      global              $1      '_POST'
          1        ASSIGN_DIM                                               $1, 'a'
          2        OP_DATA                                                  6898557993159892
    5     3        FETCH_R                      global              ~3      '_POST'
          4        FETCH_DIM_R                                      ~4      ~3, 'a'
          5        MUL                                              ~5      ~4, 1337
          6        ADD                                              ~6      ~5, 1.7
          7        ASSIGN                                                   !0, ~6
    6     8        INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%2F%5CD%2F'
         10        CAST                                          6  ~8      !0
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13      > JMPZ                                                     $9, ->16
    7    14    >   ASSIGN                                                   !0, 1337
         15      > JMP                                                      ->22
   11    16    >   INIT_FCALL                                               'round'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $11     
         19        CAST                                          4  ~12     $11
         20        SUB                                              ~13     ~12, 33
         21        ASSIGN                                                   !0, ~13
   13    22    >   ECHO                                                     !0
   19    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.91 ms | 1395 KiB | 17 Q