3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encryptMethodLength($encryptMethod) { $number = filter_var($encryptMethod, FILTER_SANITIZE_NUMBER_INT); return intval(abs($number)); } var_dump(encryptMethodLength(1)); var_dump(encryptMethodLength('1')); var_dump(encryptMethodLength("test")); var_dump(encryptMethodLength(1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PlI5c
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'encryptmethodlength'
          2        SEND_VAL                                                 1
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'encryptmethodlength'
          8        SEND_VAL                                                 '1'
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
   11    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'encryptmethodlength'
         14        SEND_VAL                                                 'test'
         15        DO_FCALL                                      0  $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
   12    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'encryptmethodlength'
         20        SEND_VAL                                                 1
         21        DO_FCALL                                      0  $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Function encryptmethodlength:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PlI5c
function name:  encryptMethodLength
number of ops:  12
compiled vars:  !0 = $encryptMethod, !1 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 519
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    6     6        INIT_FCALL                                               'abs'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        CAST                                          4  ~5      $4
         10      > RETURN                                                   ~5
    7    11*     > RETURN                                                   null

End of function encryptmethodlength

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.23 ms | 1007 KiB | 20 Q