3v4l.org

run code in 300+ PHP versions simultaneously
<?php /**** PlaceHolder to emulate file ****/ $input = <<<EOL RFHSEP34 | 20 RETBBHUJ | 10 TYRHBNNM | 5 EOL; $_POST['disCode'] = 'RETBBHUJ'; $total = 500; $total -= preg_match('#^' . preg_quote(substr($_POST['disCode'] ?? '', 0, 8)) . ' \| \K\d+(?=\h*$)#m', $input, $m) ? (int) $m[0] : 0; var_export($total);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2u1pM
function name:  (null)
number of ops:  35
compiled vars:  !0 = $input, !1 = $total, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'RFHSEP34+%7C+20+%0A%0ARETBBHUJ+%7C+10+%0A%0ATYRHBNNM+%7C+5'
   13     1        FETCH_W                      global              $4      '_POST'
          2        ASSIGN_DIM                                               $4, 'disCode'
          3        OP_DATA                                                  'RETBBHUJ'
   15     4        ASSIGN                                                   !1, 500
   16     5        INIT_FCALL                                               'preg_match'
          6        INIT_FCALL                                               'preg_quote'
          7        INIT_FCALL                                               'substr'
          8        FETCH_IS                                         ~7      '_POST'
          9        FETCH_DIM_IS                                     ~8      ~7, 'disCode'
         10        COALESCE                                         ~9      ~8
         11        QM_ASSIGN                                        ~9      ''
         12        SEND_VAL                                                 ~9
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 8
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     '%23%5E', $11
         19        CONCAT                                           ~13     ~12, '+%5C%7C+%5CK%5Cd%2B%28%3F%3D%5Ch%2A%24%29%23m'
         20        SEND_VAL                                                 ~13
         21        SEND_VAR                                                 !0
         22        SEND_REF                                                 !2
         23        DO_ICALL                                         $14     
         24      > JMPZ                                                     $14, ->29
         25    >   FETCH_DIM_R                                      ~15     !2, 0
         26        CAST                                          4  ~16     ~15
         27        QM_ASSIGN                                        ~17     ~16
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~17     0
         30    >   ASSIGN_OP                                     2          !1, ~17
   17    31        INIT_FCALL                                               'var_export'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.65 ms | 1014 KiB | 17 Q