3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "5391898ad96363ea4f8b45ed"; $x = preg_match("~[0-1a-f]{24}~", $str, $z); var_dump($x,$z);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Zbpo
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $x, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '5391898ad96363ea4f8b45ed'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5B0-1a-f%5D%7B24%7D%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1394 KiB | 17 Q