3v4l.org

run code in 300+ PHP versions simultaneously
<?php function check_tcno($tcno) { preg_replace('/([1-9]{1})([0-9]{1})([0-9]{1})([0-9]{1})([0-9]{1})([0-9]{1})([0-9]{1})([0-9]{1})([0-9]{1}).*$/e', "eval('\$on=((((\\1+\\3+\\5+\\7+\\9)*7)-(\\2+\\4+\\6+\\8))%10); \$onbir=(\\1+\\2+\\3+\\4+\\5+\\6+\\7+\\8+\\9+\$on)%10; \$sonIki = \$on.\$onbir;')", $tcno); return(substr($tcno, -2) == $sonIki); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpNIR
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   1

Function check_tcno:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpNIR
function name:  check_tcno
number of ops:  13
compiled vars:  !0 = $tcno, !1 = $sonIki
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%5B1-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29%28%5B0-9%5D%7B1%7D%29.%2A%24%2Fe'
          3        SEND_VAL                                                 'eval%28%27%24on%3D%28%28%28%28%5C1%2B%5C3%2B%5C5%2B%5C7%2B%5C9%29%2A7%29-%28%5C2%2B%5C4%2B%5C6%2B%5C8%29%29%2510%29%3B+%24onbir%3D%28%5C1%2B%5C2%2B%5C3%2B%5C4%2B%5C5%2B%5C6%2B%5C7%2B%5C8%2B%5C9%2B%24on%29%2510%3B+%24sonIki+%3D+%24on.%24onbir%3B%27%29'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 -2
          9        DO_ICALL                                         $3      
         10        IS_EQUAL                                         ~4      !1, $3
         11      > RETURN                                                   ~4
    5    12*     > RETURN                                                   null

End of function check_tcno

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.24 ms | 1395 KiB | 17 Q