3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '5d41402abc4b2a76b9719d911017c592'; function isValidMd5($md5 ='') { return preg_match('/^[a-f0-9]{32}$/', $md5); } echo isValidMd5($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gvml
function name:  (null)
number of ops:  6
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '5d41402abc4b2a76b9719d911017c592'
   10     1        INIT_FCALL                                               'isvalidmd5'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function isvalidmd5:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gvml
function name:  isValidMd5
number of ops:  7
compiled vars:  !0 = $md5
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      ''
    7     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5Ba-f0-9%5D%7B32%7D%24%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
    8     6*     > RETURN                                                   null

End of function isvalidmd5

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.33 ms | 1401 KiB | 16 Q